Skip Navigation

[Resolved] [wpv-current-user info="role"] Not displaying anything

This support ticket is created 2 years, 6 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by aaronM-9 2 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2366997

I need to display the current user's role but the shortcode [wpv-current-user info="role"] does not output anything. Is there some reason this wouldn't be working? Thanks.

-- Aaron

#2367089

I did some more troubleshooting and have discovered that the shortcode DOES return the user's role, but only for a few users here and there. The majority of users don't return any role even though they have one assigned.

#2367185

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Aaron,

Thank you for getting in touch.

Can you provide me with admin access to the site as well as the login for a user that role doesn't show ?

Secondly please point me to the page where you're displaying the user role.

Thanks,
Shane

#2367725

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Aaron,

Thank you for the credentials, however the login for the toolset account doesn't seem to work.

Can you check the password on your end and let me know if it works for you.

Thanks,
Shane

#2367801

Hi Shane,

I just tried resetting to the same password sent previously ...cS(L.

#2367837

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2022-05-20 at 10.26.06 AM.png

Hi Aaron,

Still no luck. See screenshot

Given that you can setup a staging site this will be preferable since additional testing can be done there.

I've enabled the private fields for your next response.

Thanks,
Shane

#2369545

My developer was able to figure this out. There was an issue with the role stored for several of our users.