conditional stmt for some public content
Posted: September 18th, 2010, 9:00 am
i need to create a conditional if statement for some public content, but not all public content. i would like something like--
<?php if (S2MEMBER_ACCESS_LEVEL >= 1){ ?> <a href="<?php echo S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL; ?>"></a> <?php } else { ?> <?php } ?>
is "s2member_access_level" a valid call?
i want to use the condition for those posts that have an access restriction (e.g., access_s2member_level1, etc.) as opposed to basing the condition on whether the they are a current user.
thanks.
<?php if (S2MEMBER_ACCESS_LEVEL >= 1){ ?> <a href="<?php echo S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL; ?>"></a> <?php } else { ?> <?php } ?>
is "s2member_access_level" a valid call?
i want to use the condition for those posts that have an access restriction (e.g., access_s2member_level1, etc.) as opposed to basing the condition on whether the they are a current user.
thanks.