• Hello,

    I am creating a plugin that requires a custom posts. Sadly when I am logged in as admin I cannot edit custom posts (Title is not a link). I cannot add custom post to (after clicking save I got a page with a message “You do not have permission to edit this post”).

    What could be wrong?

    BH

Viewing 3 replies - 1 through 3 (of 3 total)
  • Could be a capabilities setting. Can you show us your register_post_type args?

    Thread Starter hogo

    (@hogo)

    Here it is:

    'capabilities' => array(
            'edit_post' => 'edit_swpd_record',
            'edit_others_posts' => 'edit_others_swpd_records',
            'publish_posts' => 'publish_swpd_records',
            'read_post' => 'read_swpd_record',
            'read_private_posts' => 'read_private_swpd_records',
            'delete_post' => 'delete_swpd_record'
        ),
    Thread Starter hogo

    (@hogo)

    OK, never mind I managed to solve it myself

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No permission for admin to manage add/edit custom posts’ is closed to new replies.