I have been trying to display a section on my site using ez-php for custom capabilities.
I have no problem determining if the user is logged in or out by using the following code
[php]if(is_user_not_logged_in()):[/php]
then adding text and images here for logged out users
[php]elseif(is_user_logged_in()):[/php]
then adding text and images here for logged in users.
[php]endif;[/php]
All works fine.
Now come the next bit. I want to display a few boxes if a user does not have a custom cap.
[php]if(current_user_cannot(“access_s2member_ccap_test”)):[/php]
bit of text for the custom capps
[php]endif;[/php]
Yet no matter what I try I can’t get it to work?
On the other hand If I use the [s2if] short code I can get a result, however only with some basic text. I found the php route to be far more powerful.
Any ideas would be greatly appreciated.
Thanks in advance for your help