Home›Toolset Professional Support›[Resolved] Split: Toolset Maps and ultimate members – display conditional output based on user role in user view loop
[Resolved] Split: Toolset Maps and ultimate members – display conditional output based on user role in user view loop
This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Then in your View, use the shortcode in a conditional like this:
[wpv-conditional if="( '[get_user_role_in_loop user_id='[wpv-user field='ID']']' eq 'editor' )"]
display your marker here for editor role
[/wpv-conditional]
[wpv-conditional if="( '[get_user_role_in_loop user_id='[wpv-user field='ID']']' eq 'administrator' )"]
display your marker here for administrator role
[/wpv-conditional]
Where;
=> Do not forget to register "get_user_role_in_loop" shortcode at:
- Toolset > Settings > Frontend Content > Third party shortcode arguments.