Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trying to show only (s2member) Level2 and Level3 members on my membership page

  • @christoph744

    Participant

    I’ve been looking for days for a way to filter only level2 and level3 members into my membership page. I’m not able to get any of the examples I have located to work.

    My site has a basic level1 option to remove ads and receive some basic tools. Level2 and 3 receive access to buddypress.

    I want to filter out all level1 members from the mysite.com/members page so that level2 and 3 members don’t see level 1 members listed.

    Any help with this would be amazing. If you tell me which files to edit and the locations I can find them in, I can do the rest.

    Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    Hi @christoph744

    I’m sure there is a way to filter the members loop via BuddyPress but if you want a WordPress approach then check out the WP_User_Query class. Assuming that s2member uses custom fields to distinguish members (I may be wrong on that) you’d want to look at using the Custom Field Parameters

    Ref: https://codex.wordpress.org/Class_Reference/WP_User_Query

    @shanebp

    Moderator

    Have you seen this?

    @henrywright

    Moderator

    @shanebp cool article 🙂

    @christoph744

    Participant

    Thanks @shanebp but I’m not a coder. I’m not sure how to implement or where to implement the code or how to modify it to only show level2 and 3 members or filter out level1.

    I see file location for the member loop file but which functions.php file am I editing. I took a class some many years back on php so I can probably get it implemented but I’m not sure about how to write the code.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to show only (s2member) Level2 and Level3 members on my membership page’ is closed to new replies.
Skip to toolbar