Statistics: Posted by stefanogaruti — August 6th, 2010, 1:53 am
wordpressmania wrote:
How can I exclude some arbitrary post (that are in the "modules", protected catecgory) so that thay show up anyway even to non registered users?
Maybe the more general question could be: how the restriction applyed at category level can be "by-passed" with conditional API?
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
the_content();
endwhile;
endif;
?>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
if(has_tag("members-only") && !current_user_can("access_s2member_level1"))
continue;
else the_content();
endwhile;
endif;
?>
Statistics: Posted by Jason Caldwell — August 5th, 2010, 8:10 pm
Statistics: Posted by stefanogaruti — July 26th, 2010, 6:13 am