Thanks Eduan. I had looked through all the Advanced Conditionals previously and could not figure it out using the examples provided. However your reply did get me thinking in a different way. I decided to simply add a category labled “Private” and use that coupled with the custom capabilities to create a template page that would should only personal content for the logged in user. Here is the code:
<?php
query_posts( $query_string . '&cat=47' ); // gets only posts from the private category (check your id)
global $more; $more = 0;
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
if ( is_permitted_by_s2member()) { // only if the user is permitted to view the post will it be displayed
....post info here...
}
}
} else {
echo '<p>You have no private posts.</p>';
}
?>
The only drawback of this method is that it does not check to see if the user actually has a private post prior to getting into the loop. That is, there could be private posts for other members but not this one. In that case, have_posts will be true and the else element will not display. I’ll have to work on that piece later. Not sure how to get that to work off the bat.