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
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
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 :-).
Great, glad you were able to figure this out.
My issue is resolved now. Thank you!