How to hide content from users on template pages
Posted: January 25th, 2012, 5:06 am
Hello all!
I'm looking at using S2 member on another one of my projects and have used it in the past and its been great but I need to use it for something a bit different this time and I'm not sure it has the functionality.
So I can hide and display content depending if you’re logged in or not as such on any page or on any post
[s2If is_user_logged_in()]
This displays if user is loged in
[/s2If]
[s2If is_user_not_logged_in()]
This displays if user is NOT loged in
[/s2If]
But what I need to do is hide actual elements and functionality in a Wordpress template ... so basically what I need to do is something like that as a PHP expression, make sense, is that possible?
Regards Neil Kelsey
I'm looking at using S2 member on another one of my projects and have used it in the past and its been great but I need to use it for something a bit different this time and I'm not sure it has the functionality.
So I can hide and display content depending if you’re logged in or not as such on any page or on any post
[s2If is_user_logged_in()]
This displays if user is loged in
[/s2If]
[s2If is_user_not_logged_in()]
This displays if user is NOT loged in
[/s2If]
But what I need to do is hide actual elements and functionality in a Wordpress template ... so basically what I need to do is something like that as a PHP expression, make sense, is that possible?
Regards Neil Kelsey