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.

Conditionals short codes will not work?

Home Forums Community Forum Conditionals short codes will not work?

This topic contains 2 replies, has 2 voices. Last updated by  Eduan 4 years ago.

Topic Author Topic
Posted: Saturday Jan 5th, 2013 at 4:47 pm #36331
karl daniels
Username: madkad

Conditionals the short codes for these

[s2If current_user_is(s2member_level4)]
Leadership
[/s2If] [s2If current_user_is(s2member_level3)]
Professional
[/s2If] [s2If current_user_is(s2member_level2)]
Opportunity
[/s2If] [s2If current_user_is(s2member_level1)]
Member
[/s2If]

will not work?, i have tried a number of different levels to see these even admin and they dont show, I just copied and pasted the code to test it in a page?

can some one help to a reason this could be as I have tried searching but didnt see anything

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Sunday Jan 6th, 2013 at 10:21 am #36381
karl daniels
Username: madkad

anyone please?

Posted: Monday Jan 7th, 2013 at 8:21 pm #36513
Eduan
Username: Eduan
Moderator

Hello Karl,

So if I understood correctly, the problem is that the content enclosed within these shortcodes doesn’t show up even if you’re an admin?

Is that correct? If it is, could you please try adding the following to all the shortcodes: OR current_user_is(administrator)

Basically you would end up with this:

[s2If current_user_is(s2member_level4) OR current_user_is(administrator)]
Leadership
[/s2If] [s2If current_user_is(s2member_level3) OR current_user_is(administrator)]
Professional
[/s2If] [s2If current_user_is(s2member_level2) OR current_user_is(administrator)]
Opportunity
[/s2If] [s2If current_user_is(s2member_level1) OR current_user_is(administrator)]
Member
[/s2If]

– Eduan

Viewing 2 replies - 1 through 2 (of 2 total)

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.