Display link based on if Logged-in or Role in sidebar?
-
Hello
I’m a php noob, though can do some basic things.
Is there a bit code that can be placed in the sidebar which can control whether a link for example, is displayed in the sidebar, depending of whether a user is logged in or has a certain Role (user level)?
So for example, for a direct link to write post, this would be displayed if user is logged in. A check like this: If user = logged in, then…
Or, if they only have Role of Contributor or above
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display link based on if Logged-in or Role in sidebar?’ is closed to new replies.