- This topic has 2 replies, 2 voices, and was last updated 7 years, 4 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Public search of members based on secondary membership
Hi guys,
I’m sure this is simple, but I can’t find what I need in the forum or documentation.
I’m using the plugin eMember profile extended(v2.6 on WP 4. to create new functionality in an old site. It’s great but I need a shortcode to do what I need – I’m sure this already exists if you can point me in the right direction please.
Example:
Three membership levels such as: Level 1 General Builder, Level 2 Carpenter, Level 3 Plumber.
Secondary memberships are enabled.
I can use this shortcode to list all members where their primary member ship level is for example ‘Level 1 General Builder’.
[emember_extended_summary_list fields=”first_name,last_name,regions_covered” style=”2″ levels=”1″ status=”active”]
However, many members will appear in more than one level. For example, a general builder (Level 1) will also undertake Carpentry and plumbing work.
At the moment the shortcode example given above only returns search results where the primary membership equals the specified level.
I need a shortcode that returns all Level 1 members regardless of whether this is their primary or secondary membership.
Any suggestions?
You should be able to use the following shortcode which lists any member that has level “1” in their primary level or secondary level:
[emember_extended_summary_list fields=”first_name,last_name,regions_covered” style=”2″ status=”active” levels=”1″ 2nd_levels=”1″]
It will search members accordingly also.
Brilliant. Works a treat, thank you so much.