Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Selected fields for admins only

  • Resolved kryvulena


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Amir Helzer


    For that, we have the Types Access plugin:

    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:

    Buy Toolset

    Hello 🙂

    Thanks for your quick reply. As for granting access to various WP-admin sections I use 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 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Selected fields for admins only’ is closed to new replies.