Statistics: Posted by Cristián Lávaque — June 28th, 2011, 12:16 am
Statistics: Posted by LarsW — June 27th, 2011, 3:41 pm
Statistics: Posted by Cristián Lávaque — June 13th, 2011, 11:06 pm
Statistics: Posted by LarsW — June 11th, 2011, 3:21 pm
Statistics: Posted by LarsW — June 10th, 2011, 3:30 pm
<div class="nav">
<?php
if(!is_user_logged_in()) {
if(has_nav_menu('main-menu')) {
wp_nav_menu(array(
'theme_location' => 'main-menu',
'container' => 'ul',
'walker' => new UDS_Menu_Walker
));
} else {
wp_nav_menu(array(
'container' => 'ul'
));
}
} else {
if(has_nav_menu('primary-level'.S2MEMBER_CURRENT_USER_ACCESS_LEVEL)) {
wp_nav_menu(array(
'theme_location' => 'primary-level'.S2MEMBER_CURRENT_USER_ACCESS_LEVEL,
'container' => 'ul',
'walker' => new UDS_Menu_Walker
));
} else {
wp_nav_menu(array(
'container' => 'ul'
));
}
}
?>
</div>
Statistics: Posted by fcp2011 — June 8th, 2011, 10:23 pm
Statistics: Posted by fcp2011 — June 8th, 2011, 10:21 pm
<?php if(is_user_logged_in()){ ?>
Content for anyone that is logged in, regardless of their Membership Level.
<?php } else { ?>
Some public content.
<?php } ?>
Statistics: Posted by LarsW — June 7th, 2011, 4:57 pm
In addition, there are two special functions that can be applied by theme authors before making custom queries: attach_s2member_query_filters(), detach_s2member_query_filters(). These can be used before and after a call to query_posts() for example. s2Member will automatically filter all protected content ( not available to the current User/Member ).
Statistics: Posted by Cristián Lávaque — June 6th, 2011, 3:25 am
Statistics: Posted by LarsW — June 5th, 2011, 2:11 pm
Statistics: Posted by Cristián Lávaque — May 1st, 2011, 7:16 pm
Statistics: Posted by maxim — May 1st, 2011, 5:11 pm