Viewing 1 reply thread
  • Author
    Posts
    • #2294
      kcristiano
      Member

      I only want to show a meta box if a user has a specific role or capability. I can see how to do that, but I want to go a step further and prevent that user from editing the meta and restricting the editing of the meta to admins.

      Any ideas on how to do this?

    • #2295
      Steve
      Keymaster

      Currently Piklist only has the ability to show field values, uneditable, on a post status.

      To do this you might have to wrap your fields in conditions based on user role, or use the capabilities parameter for fields.

      Standard fields are only shown to Admins. For the other roles use the HTML field to display the field values only.

      To use the HTML field for this you will need to pull the post meta and place it in the value parameter.

Viewing 1 reply thread
  • The topic ‘Meta box for specific user role/cap’ is closed to new replies.