Show field based on user role (if else)
-
Hi everyone,
I just need a little bit of help with an if else to show a custom field I have created to users based on their user role.
If they are a certain user role, or even a certain user role and/or higher i was this to show
<p>MAP: <?php the_field(‘map’); ?></p>
I can’t seem to figure it out after looking around all day.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Show field based on user role (if else)’ is closed to new replies.