Link to Page Based on Role
-
Hi, I love this plugin. Thank you!
I’m trying to display one of two pages based on user roles. My code is as follows, but even though I’m testing as an administrator, I get the 2nd page (advanced-search) not the first (staff-advanced-search). What am I doing wrong? I am also using the User Roles and Capabilities plugin if that makes a difference. I also tried the If Else statement and the same thing happened.
[is role=”administrator,editor,author”]
<h1><span style=”color: #ff0000;”>Advanced Search</span></h1>
[/is][is role=”subscriber,contributor”]
<h1><span style=”color: #ff0000;”>Advanced Search</span></h1>
[/is]https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Link to Page Based on Role’ is closed to new replies.