Custom Post Type, Admin can't Create
-
I’m a bit new at creating Custom Post Types, but I think I have the basics down. For a theme that I’m writing for a client I’m creating a new Post Type called “Performance Task” that a teacher will be able to write and post about a lesson plan they’ve created.
However, when I activate the theme, the Administrator account can only access the Categories and Taxonomies for the Post Type; it cannot access any other abilities such as new post, view posts, etc.
I’ve dug through the documentation and haven’t been able to find anything on registering post types that coincides with needing to grant the Administrator role additional access. However, I could also just be doing it completely wrong.
A gist of the php to create the custom post type is at https://gist.github.com/pkarjala/d827a96d029294ed4485
My choice of doing this in a theme vs. a plugin aside, I’d like to learn how to provide the administrator role access to all of the normal functionality that the new post type has: create, publish, delete, etc. I’ll eventually be adding a few other custom roles that can interact with this post type, but I think I can get that working correctly. Do I need to re-create the administrator role? Or can I simply add the new capability required to administrator in the theme?
Thank you for your assistance.
The topic ‘Custom Post Type, Admin can't Create’ is closed to new replies.