This support ticket is created 5 years, 7 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to use wpv-current-user to display the currently logged in user's role. This is working for all users I've tested except for one admin user. It display nothing for the role for this one particular admin. For other admin users it correctly displays the administrator role. What would keep it from display any role for one admin user?
wpv-current-user role = [wpv-current-user format="meta" info="role"]
Hello. Thank you for contacting the Toolset support.
Well - I checked with my test install and I used the following shortcode to display the current user role:
[wpv-current-user info="role"]
Can you please check if above shortcode help you to resolve your issue otherwise it should be an exception as you acknowledge that the shortcode works for all other users excluding one specific user.
That is really strange and I do not able to reproduce this issue. There is something strange happening on your install.
Please take the basic debug steps;
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
or
Send me the access details where you added the shortcode so I'll try to check what's going on with your setup.
I have set the next reply to private which means only you and I have access to it.
Well - there is something strange going with your site.
When I see the capabilities within database for the user "smythe" I see following:
- I see that you may have installed the plugin "User Role Editor" and later on deactivate it
Thank you. That did fix the problem. I'm still puzzled why other Admins didn't have a problem as the user role definitions and capabilities were intended to be the same for all admins. But maybe I inadvertently change something on the one admin. Thanks for helping me spot the problem.