Skip Navigation

[Resuelto] Access wp_usermeta table in Views

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
The user would like to display some user meta data that is managed by the Memberpress plugin.

Solution:
Toolset functions and shortcodes will only allow you to display fields that are managed by Toolset:
- https://toolset.com/documentation/customizing-sites-using-php/functions/
- https://toolset.com/documentation/user-guides/views/views-shortcodes/

According to this article, Memberpress has its own shortcodes to display user meta[mepr-account-info]
https://docs.memberpress.com/article/112-available-shortcodes

You may want to create your custom shortcode to display the user meta, like this answer on StackOverflow https://wordpress.stackexchange.com/a/82335
Or this one https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/display-user-meta/

Or using a 3rd party plugin such as https://wordpress.org/plugins/user-meta-shortcodes/

Relevant Documentation:

This support ticket is created hace 4 años, 6 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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

Supporter timezone: Africa/Casablanca (GMT+01:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por DavidW2160 hace 4 años, 6 meses.

Asistido por: Jamal.

Autor
Mensajes
#1617159

I'm using Memberpress, and would like to use Views to create a member directory. I don't see the custom fields I've created using the Memberpress capability (an extension of the user profile), which I believe are stored in table wp_usermeta. Any way to do this? I can find the names of the meta fields, just not how to access them.

#1618075

Hello and thank you for contacting the Toolset support.

Toolset functions and shortcodes will only allow you to display fields that are managed by Toolset:
- https://toolset.com/documentation/customizing-sites-using-php/functions/
- https://toolset.com/documentation/user-guides/views/views-shortcodes/

According to this article, Memberpress has its own shortcodes to display user meta[mepr-account-info]
enlace oculto

You may want to create your custom shortcode to display the user meta, like this answer on StackOverflow https://wordpress.stackexchange.com/a/82335
Or this one enlace oculto

Or using a 3rd party plugin such as https://wordpress.org/plugins/user-meta-shortcodes/

I hope this helps. Let me know if you have any questions.

#1620527

My issue is resolved now. Thank you!