• Resolved siddhant19

    (@siddhant19)


    Hi,

    I created a CPT named “professional english” at menu position 5. But then i deleted the same because of some mistake at my end. For deletion i had to replace spave with underscore and then deleted it. Now I again created the CPT with title “professional_english” at position 5 and also at tried for position 10. but neither of them is showing the CPT in the admin menu.

    Why this is happening?

    Thanks,
    Sid

    https://www.ads-software.com/plugins/custom-post-type-ui/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Does it show up without a menu position specified?

    It’s possible that there are some other things being added to the menu with the same position specified, and thus a clash.

    Thread Starter siddhant19

    (@siddhant19)

    Hi Michael,

    Something strange happened. It did show without the menu location being mentioned. And it showed at the same position before I deleted it. But when i refreshed the page it disappeared. I am little surprised here. Any reason why that might have happened.

    Also,the first line of Edit Post Type says: DO NOT EDIT the post type slug unless necessary. Changing that value registers a new post type entry for your install.”
    What it actually means? Does my deleting the earlier CPT and creating new one at the same position is impacted by this line?

    Thanks,
    Sid

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If I recall our github issue list, menu position is slightly flaky still, and I haven’t managed to figure out why. It doesn’t come up often, which has it at a lower priority to go in depth with. Very edge case.

    We store all of the post types and taxonomies, registered by CPTUI, in an array, with the slug being the associative array index. Because of this, renaming the slug without also using the convert post types checkbox (if you have posts already published), makes the slugs “mismatched”, and instead of updating an index, it creates a new index.

    If you deleted one already, then the entire spot in the index should have been removed in the saved setting data and nothing to get mixed up with. You’d essentially be starting fresh.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Post type not showing after deleting’ is closed to new replies.