Skip Navigation

[Resolved] Integrating Memberpress & Toolset to display a list of Members by Membership ID

This support ticket is created 6 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by orlaF 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1165700

Tell us what you are trying to do?
I am trying to display a list of Memberpress members by membership ID (eg: Only 'Licenced Members' with a membership ID of 417). I have found the hidden custom field to access this information ( _mepr_plan_code ).

However, I can only access it in views via the Content Selection: 'Post types' (See Screenshot: hidden link ).

I need to show a list of users so I need to use the Content Selection 'User' option. I cannot access the same custom query filter as shown in the above screenshot when I choose the Content Selection 'Users'. Is it possible to access this parameter in the 'User' views filter area?

Is there any documentation that you are following?
No, but it would be an excellent integration example for Memberpress which is brilliant but has very poor customisation options that Toolset could resolve. See: hidden link

Is there a similar example that we can see?
Here is a screenshot of the wireframe of what I would like to achieve: hidden link

What is the link to your site?
Development Site: hidden link

#1165816

Hi, I'm not very familiar with this MemberPress plugin so I'm not sure how it saves data. When you see this hidden custom field "_mepr_plan_code" in the database, are you looking in the postmeta table, the usermeta table, or somewhere else?

If it's the usermeta table, then I can show you how to use the wpv_filter_user_query API to display a list of Users filtered with this custom user field.
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_user_query

If it's the postmeta table, what type of post is it associated with? You can tell by looking in the same row as the _mepr_plan_code key and finding the column "post_id". Copy that post ID number and then head into the posts table. Search for that post ID, and you can see the post type listed in the post_type column.

With Views and the wpv_filter_query API, I can help you display a list of posts filtered by that postmeta value. However, I'm not sure how those posts are connected to Users. That's something I am not able to tell based on your information.
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

#1167509

Thank you for your reply Christian. I actually found that hidden field through Toolset and haven't been able to locate it in the database.

Just to update this incase anyone else is trying to integrate Memberpress & Toolset, Memberpress have a User Role add on hidden link

I've created a custom role using Access and assigned that role as the default for the relevant membership in Memberpress. Creating a view based on a user role is very straight forward. Thankfully this worked perfectly :-).

#1167901

Great, glad you were able to figure this out.

#1171229

My issue is resolved now. Thank you!