This topic contains 1 reply, has 2 voices, and was last updated by  Steve 2 years, 11 months ago.

  • Author
  • #7542


    I have a custom post type that I’ve declared with custom capabilities:

    ,'capability_type' => array('plagiarism_case', 'plagiarism_cases')
     ,'map_meta_cap' => true

    Then I have the capabilities defined:

    $admin_caps = array(
      $user_caps = array(
      $admin_roles = array(
        get_role( 'administrator' ),
        get_role( 'editor' ),
      $user_roles = array(
        get_role( 'subscriber' ),
        get_role( 'contributor' ),
      foreach ($admin_roles as $role) {
        foreach (array_merge($admin_caps, $user_caps) as $cap) {
          $role->add_cap( $cap );
      foreach($user_roles as $role){
        foreach ($user_caps as $cap) {
          $role->add_cap( $cap );

    Unfortunately, only admins appear to be able to save values in the metaboxes. Subscribers can edit the post type, and even edit the meta fields directly (via native wordpress field display), but when entering information in the metabox field, the content is not saved. The same is true of the front-end form.

    I’m using piklist

    Thanks in advance!

  • #7561


    Are you registering the post type with the Piklist filter or WordPress function?

You must be logged in to reply to this topic.