Support » Plugin: Restrict User Access - Membership Plugin with Force » Shortcode for new roles

  • Resolved realdoctorstu


    I’ve trawled the support forum but not been able to find the answer to my issue, so hope you can help.

    I have created a new user access level (called ‘Full Access’) and added a user ID (as a basic subscriber) to that access level. I want certain content visible only to them.

    The following shortcode seems not to work:

    [restrict role="Full Access"]
    Full access here

    There will be different user types that will have access to different content – but not on a hierarchy basis (i.e. some users can access content A only, some access content B only, and some access both A and B).

    Can you explain what I am doing wrong with the shortcode? How can I make content visible to one user access group?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter realdoctorstu


    No one has responded, but I think the solution was in the previous topic:

    [restrict level="level-name"]restricted content[/restrict]

    So to use ‘level’ rather than ‘role’. Suggest a guide to shortcode use be included in the FAQ?

    Thanks for the plugin

    Plugin Author Joachim Jensen


    I agree that a better documentation is much needed.

    When using the shortcode, you can use the role parameter to target WordPress user roles, and the level parameter to target levels created in this plugin.

    An important thing to remember is that you should not use the title, but the slug/name, so in your case it might be “full-access”, but you can always see the correct name in the Access Levels overview.

    I hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode for new roles’ is closed to new replies.