Page 1 of 1

Template Tags for Custom Pages

PostPosted: January 28th, 2012, 1:20 am
by JordashTalon
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.

Re: Template Tags for Custom Pages

PostPosted: January 28th, 2012, 5:09 am
by Cristián Lávaque
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. :)