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™

Template Tags for Custom Pages

s2Member Plugin. A Membership plugin for WordPress®.

Template Tags for Custom Pages

Postby JordashTalon » January 28th, 2012, 1:20 am

Here's what I want to do, make a custom page that is partially protected (e.g. doesn't redirect the entire page but just protects a portion of it).

Something like this

Code: Select all
<?php if(user_level = 1) { ?>

// Output content that user level 1 should be able to see

<?php } ?>


How can I do that with S2 Membership plugin?

Thanks.
User avatar
JordashTalon
Registered User
Registered User
 
Posts: 1
Joined: January 28, 2012

Re: Template Tags for Custom Pages

Postby Cristián Lávaque » January 28th, 2012, 5:09 am

With conditionls. s2Member has shortcode conditionals you can use, but PHP ones are also available.
WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals
WP Admin -> s2Member -> API / Scripting -> Advanced/PHP Conditionals


I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron