Skip Navigation

[Gelöst] [wpv-current-user info="role"] Not displaying anything

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

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 6 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von aaronM-9 vor 2 Jahren, 6 Monaten.

Assistiert von: Shane.

Author
Artikel
#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

Sprachen: Englisch (English )

Zeitzone: 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

Sprachen: Englisch (English )

Zeitzone: 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

Sprachen: Englisch (English )

Zeitzone: 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.