• Resolved Mike

    (@boa)


    Hi,

    Everything was working just fine, and I had 12 posts under my new custom post type.

    For some reason the menu item has disappeared from the admin menu and nothing I do will bring it back. The posts are still showing on the front end, but I just can’t access them now in the backend.

    When I type the URL directly, I get a “Cheatin’ uh?” message from WordPress.

    Please help!

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

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

    (@tw2113)

    The BenchPresser

    Did you do any renaming of the post type or change any specific setting for the post type settings?

    Thread Starter Mike

    (@boa)

    The site is a work in progress so settings are being changed regularly.

    All the settings seem correct – I’ve toggled ‘show in menu’ to true and false, but the menu item still doesn’t appear.

    Are you able to login and take a quick look?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Set up an admin account using michael @ webdevstudios dot com for the email. User/pass doesn’t matter as much as I can copy/paste that.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Checking.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    So I managed to get the menu item to show up, though I had to recreate it myself and import. I matched up all the settings the best I could, with exception to one thing. The Post Type slug shouldn’t have dashes in them like what you had when I first logged in. You want underscores. As far as I am aware, dashes are fine in the rewrite value, just not for the slug. It does appear that the post type list found all the previous posts too. At very least, it found 12.

    That said, I am not sure how you have the frontend set up for querying and displaying. It may be a hardcoded slug somewhere that I wouldn’t know about, but I do know that the Image gallery link I found in the menu is presently showing zero results.

    Hope this helps in the long run.

    Thread Starter Mike

    (@boa)

    Thanks for you help! I have the front-end working again now.

    Do you know how I can alter slugs?

    It’s currently .com/?image_gallery=patient-1897
    I would like .com/image-gallery/patient-1897

    Thanks,
    Mike

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Unless I’m mistaken, that’s a permalinks setting, and I noticed you have a bunch of extra sections on the permalinks screen. If I recall right, the image gallery one was set to “default”.

    Thread Starter Mike

    (@boa)

    Yes, I had to revert back to that.

    I followed the instructions but when I change to /%postname%/ – it causes a 404 when I click the post.

    The same thing happens when I add image-gallery/%postname%/

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure, to be honest. Permalinks are always a pain to debug for me too, so I don’t have any sure answer.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Missing Admin Menu Item for Custom Post Type’ is closed to new replies.