WordPress.org

Forums

Types
[resolved] Selected fields for admins only (3 posts)

  1. kryvulena
    Member
    Posted 2 years ago #

    Hi there

    I'd like to know is it possible to achieve with Types something like this:

    let's say I create a group of 10 fields at a custom post type and I give access to the post so that users with defined user role (non-admin) may access/edit it.
    I'd like to restrict access to 1-2 fields from the set so that only admin may see/edit them within the custom post type. The user would see/access only the rest of fields.

    The purpose is to give admins a safe way to configure ie. contact form shortcode for a defined user/post so that once it's set, the user cannot view/change the shortcode etc. But the inserted shortcode would work fine for that user/post at frontend.

    As for now I excluded the editor field from Edit Custom Post Type / Display Sections so that users cannot view/use it. Then I temporarily enable it to insert shortcodes I don't want to give access to. Once saved, and the editor field is disabled again, it works all fine. The user cannot view the editor field and the shortcodes work all fine. But it is complicated in use, and - the most important - there is always a possibility that the users would try to edit the custom post type with Types' fields at the same moment I enabled the editor field and see the restricted fields by a chance. And this allows to restrict access to 1 field only.

    Is there any easier way?

    http://wordpress.org/extend/plugins/types/

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    For that, we have the Types Access plugin:
    http://wp-types.com/home/types-access/

    Right now, it controls the display for custom post types, but not custom fields. That's a good suggestion. I'll add it to our todo list and we can have it sometime in the future.

    Types Access comes included with any purchase of Views:
    http://wp-types.com/buy/

  3. kryvulena
    Member
    Posted 2 years ago #

    Hello :-)

    Thanks for your quick reply. As for granting access to various WP-admin sections I use Advanced Access Manager http://wordpress.org/extend/plugins/advanced-access-manager/ which is a very powerful took, ie. I can grant users an access to their own posts only + their own profiles only. And all the rest is restricted.

    As for know it seems I must stick to the solution I described. If you added custom fields access control to your plugin (that would be just great!), I'd gladly consider purchasing it (however I don't need Views itself). Maybe you could also consider incorporating same access control to you your plugin. I rather tend to use a one software package than having things/support scattered all over numerous places.

    Greetings :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.