PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Displaying list of posts available to members

s2Member Plugin. A Membership plugin for WordPress®.

Displaying list of posts available to members

Postby moonviper » December 21st, 2010, 3:42 pm

I run an installation of s2member which has two different membership levels.

With this installation, there are some bits of content available at one level, another set of content available to those on the second level.

I would like a way to (in an automated manner) present a list of the titles (and perhaps excerpts) available at each level.

This like this.....

Available at level one:
*post one
*post two
*post three

Available at level two
*post four
*post five
*post six

Under ideal circumstances (and I'm aware this may take modifying the wordpress loop) I'd like to make those titles show links if the member is already logged in with the appropriate credentials.

Does anyone know if there is a way to do this, without having to create the list manually?
User avatar
moonviper
Registered User
Registered User
 
Posts: 2
Joined: December 21, 2010

Re: Displaying list of posts available to members

Postby webboy » December 28th, 2010, 5:11 pm

you could do this with a if statement // remember to set the post with the access level

<?php if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL === 1){
..display your excerpts in a wp loop php..
}?>
or use the other codes if you don't know php
User avatar
webboy
Experienced User
Experienced User
 
Posts: 11
Joined: August 3, 2010

Re: Displaying list of posts available to members

Postby Cristián Lávaque » December 28th, 2010, 5:42 pm

You could also organize the content for each level using categories or tags, and then use the normal listing for the category or tag for that level to display the content.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests

cron