Hi, I have shortcode conditionals to show some text in my site. These used to work but have now stopped working and the shortcode gets shown on the site.
Can someone please help to identify what could be causing this issue.
Thanks, Andy
Hi, I have shortcode conditionals to show some text in my site. These used to work but have now stopped working and the shortcode gets shown on the site.
Can someone please help to identify what could be causing this issue.
Thanks, Andy
It sounds like you have a conflict with a plugin or theme.
This post describes how to diagnose the culprit. Just replace references to “The Events Calendar” with s2Member.
Hi, i’ve tried this and unfortunately with the default theme and only s2member, the conditionals still don’t work. Below is the code i’m using.
[s2If current_user_can(access_s2member_level6)]
Show me
[else]
Please log in or register as a member to book onto this event.
[/s2If]
How about this:
[s2If current_user_can(access_s2member_level6)]
Show me
[/s2If]
[s2If !current_user_can(access_s2member_level6)]
Please log in or register as a member to book onto this event.
[/s2If]
Ah, that seems to be better! Odd… Thanks!