Skip Navigation

[Resolved] Access wp_usermeta table in Views

This thread is resolved. Here is a description of the problem and solution.

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 4 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.

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)

This topic contains 2 replies, has 2 voices.

Last updated by DavidW2160 4 years, 7 months ago.

Assisted by: Jamal.

Author
Posts
#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]
hidden link

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 hidden link

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!