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.

Show content for one user

Home Forums Community Forum Show content for one user

This topic contains 2 replies, has 3 voices. Last updated by  Jason (Lead Developer) 4 years, 10 months ago.

Topic Author Topic
Posted: Thursday Feb 16th, 2012 at 11:06 am #5370
Maryke
Username: maryke

I would like to make certain content available to only a certain member. For example:

[s2If is_user_logged_in() AND current_user_is(annie)]
[table id=2 /]
[/s2If]

I have it like that, but it is not working.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Feb 16th, 2012 at 12:46 pm #5383
David Welch
Username: dwbiz05

I saw your post in the other forum and here is a link to my solution:

http://www.s2member.com/forums/topic/show-content-for-one-user/#post-5371

Dave

Posted: Monday Feb 20th, 2012 at 4:28 pm #5722
Staff Member

s2If is_user_logged_in() AND current_user_is(annie)

I believe the issue here is related to “annie”. That should be a Role name like:

subscriber
s2member_level1
s2member_level2
s2member_level3
s2member_level4
[s2If is_user_logged_in() AND current_user_is(s2member_level1)]
	...
[/s2If]
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.