Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s tags.
capture: Capture the output of the shortcode and route it to a variable for later use. (?)
except_roles: A comma separated list of WordPress user roles that the current user must not be one of in order for the test to succeed.
not: You can use the attribute not=”not”, to reverse the results of the test.
roles: A comma separated list of WordPress user roles to check the user’s roles against.
txtfmt: A comma separated list of text processing functions to be used to post process the contact fields. (?)
The [else_memb_has_any_tag] shortcode is entirely optional. If you skip the [else_memb_has_tag] clause, then the contents of the shortcode will only be displayed on success, and nothing will be displayed on failure.
For more complex conditions, you can nest conditional shortcodes within each other.
In order to keep things clear, as you nest your shortcodes, put a digit at the end of the shortcode name, so that the shortcode processor can tell which shortcode pieces go together.
[memb_has_any_tag1] [else_memb_has_any_tag1] [/memb_has_any_tag1]
[memb_has_any_tag2] [else_memb_has_any_tag2] [/memb_has_any_tag2]