Show content only to users who are not logged in, using shortcodes
-
Is there a way to use shortcodes to display page content only to users who are not logged in?
I tried: [restrict role=”not-logged-in”][/restrict], but that did not work.
Then, I created an access level and linked it to the user role ‘Not logged-in” in the backend of the Restrict User Access plugin. In my page I then included:
[restrict level=”not-logged-in”][/restrict]. That too did not work.I also tried excluding all my access levels:
[restrict level=”!low, !medium, !high”][/restrict]
No effect.In all cases the content was always displayed, even when users were logged in.
Is there a way to do this?
- The topic ‘Show content only to users who are not logged in, using shortcodes’ is closed to new replies.