[Resolved] Custom Post Type; Admin Can't Publish or Delete
I’m having the strangest time getting capabilities to work correctly with a custom post type. I just want my custom post type to use the same capabilities as standard posts do. (It was working completely fine for a while, and then something changed—I’m not sure what yet—and I got frustrated and started with a completely fresh WordPress install, which didn’t fix anything. :))
Here’s how I’m registering the post type: http://pastie.org/3721112 (See the end of this post for an explanation of my visibility settings.)
I’m always logged in as an admin user.
When I create one of these post types and click “Publish”, it saves as a draft. When I try to manually change the post status, I don’t have the option to publish: http://cl.ly/2Z3f1D1I1X1Z2M3n1016
Also, when I click “Move to Trash” from the post list, I get the “Moved to trash” message, but it’s still in the list: http://cl.ly/3q0y3S3D0L0Y411Z3I0h
In fact, when I click “Move to Trash”, my
save_postaction hook runs. That makes no sense.
Any ideas? I don’t need custom capabilities. I just want to use the existing post capabilities.
I need only a few out-of-the-ordinary things. Posts of this type:
- Don’t show up in nav menus.
- Don’t have archives.
- Don’t show up in search.
Basically, the only way to get to one is if there’s a link directly to one of them.
- The topic ‘[Resolved] Custom Post Type; Admin Can't Publish or Delete’ is closed to new replies.