nested shortcodes and s2member
Posted: November 22nd, 2011, 3:08 pm
Hello all,
I'm using the "post snippets" plugin (http://wpstorm.net/wordpress-plugins/post-snippets/) and would like to create a shortcode containing s2member conditions.
the shortcode woul look like :
the corresponding s2member conditions looking like
But i cannot make it work : the s2member conditions are not evaluated
Do you have any idea why ?
Thanks in advance
I'm using the "post snippets" plugin (http://wpstorm.net/wordpress-plugins/post-snippets/) and would like to create a shortcode containing s2member conditions.
the shortcode woul look like :
- Code: Select all
[hide_content].... protected content...[/hide content]
the corresponding s2member conditions looking like
- Code: Select all
[s2If current_user_is(s2member_level1)]
... protected content .....
[/s2If]
[s2If !current_user_is(s2member_level1)]
.... static content if no access .......
[/s2If]
But i cannot make it work : the s2member conditions are not evaluated
Do you have any idea why ?
Thanks in advance