PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

conditional stmt for some public content

s2Member Plugin. A Membership plugin for WordPress®.

conditional stmt for some public content

Postby taxgeeks » 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.
User avatar
taxgeeks
Registered User
Registered User
 
Posts: 7
Joined: August 23, 2010

Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 3 guests

cron