I am trying to make a conditional statement for a user Profile for a Paid Talent Site. What I need is If the Author of the Post has the WordPress Role "Talent" - I made an additional role that I copied from Subscriber. Then show The field I want to display
I tried using the program that makes statements but I have no idea what to make it equal to
[wpv-conditional if="( '[wpv-post-author]' eq ' ' )"]
So what I need is
If The Post Author is a member of Role Talent show a result. If its not a member of Talent Then it will just show an image or something.
You use the GUI for "Conditional Output" and compare either the current logged in user, or the post author, to the role of the either current logged in user, or author.
This looks at the end like this:
[wpv-conditional if="( '[wpv-current-user info='role']' eq 'your_custom_role' )"]
your conditional stuff here
[/wpv-conditional]
If you want to compare the author, it's the same, but with the author shortcode.
The issue here is the Author ShortCode can not call the User Role directly.
So you need to compare as example against the user level.