Nested Conditions
-
Hi,
I am trying to hide text using the following conditions, however, whenever I add a nested condition, it will not work correctly. Separately the conditions work fine.
When using the example below, the “oil” is hidden, but the other text is still shown, and the last/second shortcode [/restrict] is for some reason shown on the web page as well.Please advice how I can make this work. I like to show only the “whole” text if you are in a particular role/level and when you are member of that role/level you can only see “Oil” if you are part of the role/level called “oil”.
Thanks.
Example snippet from in a page:
[restrict role=”role1″]
Energies
[restrict level=”oil”]Oil[/restrict]
Gas
Gasoline
[/restrict]
- The topic ‘Nested Conditions’ is closed to new replies.