Post type doesn't appear in admin menu
-
I install on new wordpress the plugin and i try different positions for menu but it doesn’t appear. I have the plugin in another site and it works like a charm. What is the problem?
-
Have you made sure to set “Show UI” to true? What menu position values are you trying?
yes i’m sure. I type 6 and 7 and 10 and there isn’t change
Try leaving the value unset and see if it shows up using default values.
Same here
http://pastebin.com/2uV9Yz8K
On a test WP 4.4nourcy, make sure you keep the “post” capability type in place, especially if you’re not doing anything customized for capabilities.
deizi23, check and make sure you have that in place as well for your own issues.
I didn’t change any capabilities, I wanted to test your plugin and my docker is a blank WP without any modifications.
Should I change the capabilities for this custom post?
If so what do you recommend?just set it back to the default value of “post”. You can compare the “Capabilities type” field to when adding a new post type, to the one you’re currently registering.
Damn.. sorry for that, I didn’t notice that left this field empty.
Thanks for your time, this field should be mandatory or set to “post” if empty :pIt does already default to “post”, it has to be removed/cleared out manually to be lost 🙂
Good to hear yours cleared up though.
Hi Michael
I’m experiencing a similar issue. I’ve got:
- Show UI = true
- Menu order = default
- Capability type = post
I’m not sure what else it could be. Any help?
Thanks in advanced.
Sam
Can you pastebin me your export code for the post types, Sam?
Sam, I believe you have your menu position number in the wrong place. You put it in the “Show in menu” spot, but you want the field right above that one.
Move it and hit save, and it should show up as expected. https://cloudup.com/cLCXNASR4qb
Hi Michael
That worked – cheers for your help!
Sam
Welcome
The topic ‘Post type doesn't appear in admin menu’ is closed to new replies.