Page 1 of 1

Displaying list of posts available to members

PostPosted: December 21st, 2010, 3:42 pm
by moonviper
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?

Re: Displaying list of posts available to members

PostPosted: December 28th, 2010, 5:11 pm
by webboy
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

Re: Displaying list of posts available to members

PostPosted: December 28th, 2010, 5:42 pm
by Cristián Lávaque
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.