Skip Navigation

[Closed] Toolset Access Tag Not Working And Can't Find Documentation

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 6.75 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 9 months, 3 weeks ago.

Author
Posts
#2680383

Tell us what you are trying to do? Display info based on role

Is there any documentation that you are following? No, I can't find any documentation under the menu here nor Google hidden link

I have the following code

[toolset_access role="Site Registered User"]
Registered
[/toolset_access]
[toolset_access role="Site Paying Member"]
Paying
[/toolset_access]

When the user has the 1st role it shows Registered, when it has the second role, it shows both Registered and Paying. Is it a hierarchical thing? Should I use the toolset_access tag and then within use conditions?

#2680388

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I did a quick test on my own site to see that it's working as it should be with the current version of Access, and it did work as intended.

I initially checked with the standard roles, but also added a custom role, with the following:

[toolset_access role="Custom Editor" operator="allow"]
For Custom Editor eyes only
[/toolset_access]

[toolset_access role="Author" operator="allow"]
For Author eyes only
[/toolset_access]

So the problem doesn't appear to be with the shortcode itself.

Might your users have multiple roles?

Note, you can insert the shortcodes via the UI if you have the Toolset shortcodes admin toolbar menu item enabled (in Toolset > Settings). (The same dialog to insert the shortcode is also available if you are editing posts/pages with the classic editor.)

The topic ‘[Closed] Toolset Access Tag Not Working And Can't Find Documentation’ is closed to new replies.