Skip Navigation

[Résolu] How to display User Meta Fields?

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
How can I display User Meta fields using toolset?

Solution:
You should first create the Fields in Toolset > User Fields, and then populate some of those fields for a few users (at least one).

Then, you can display them with the Toolset GUI "Fields and Views", and insert them anywhere you want.

Relevant Documentation:
https://toolset.com/documentation/user-guides/user-fields/
https://toolset.com/documentation/user-guides/displaying-wordpress-user-fields/

This support ticket is created Il y a 6 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Marqué : ,

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par marcB-6 Il y a 6 années et 9 mois.

Assisté par: Beda.

Auteur
Publications
#614786
Screenshot_1.png

I am trying to: display value using [types usermeta="student-id" output="raw" current_user="true"][/types]

I expected to see: value stored in student-id filed

Instead, I got: blank

Note : I have installed beta version of types and views plugin.
1) Toolset Types - Version 2.3-b2
2) Toolset Views - Version 2.6-b1

Thanks

#614844

I can display user Fields just fine with the Beta versions of Views and Types.

Where exactly are you trying to show this field?
And - have you checked that the user you try to display the field of has authored some posts?

I also recommend to update WordPre from 4.8.5 as soon as possible, your site is at risk with this outdated version.

Toolset Beta versions should not be used with other Plugins, not even with other Toolset plugins, as by now only the Beta versions work with each other properly.
I see you use Access, and suggest to remove it from this test site.
This can be done in Toolset > Settings > Access

If afterwards this problem persists, please let me know - and if possible, a Site's copy would help a lot:
https://toolset.com/faq/provide-supporters-copy-site/

Thank you!

#615093

I was able to display value using this : [wpv-user field="wpcf-student-id"]
Thanks