latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

s2If Shortcode Conditionals are NOT working!

Home Forums Community Forum s2If Shortcode Conditionals are NOT working!

Tagged: 

This topic contains 0 replies, has 1 voice. Last updated by  Rainer Otto 3 years, 10 months ago.

Topic Author Topic
Posted: Thursday Feb 21st, 2013 at 9:12 pm #42777
Rainer Otto
Username: sagonth

Hi,

I have problems with this type of not-nested shortcode conditionals (sample):

[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If] [s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]

The resulting page part within the s2If condition is empty. Nothing happened there or it seems like so. The page is a custom page. The [] part (command) disappear correctly during run-time.

Different conditional shortcodes seems not to work either, but the s2Get constants shortcodes on top of my page are working!

s2If shortcode conditionals on a custom sidebar within a custom text widget works fine.

I suspect a conflict anywhere but can’t pinpoint it.

Any idea?

Help would be very much appreciated. I use the latest S2Member program (not Pro) and the latest WordPress version of 3.5.1

Thanks

Rainer

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.