Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members Loop – Filter by User Role


  • coffeywebdev
    Participant

    @coffeywebdev

    I am running S2 membership with Buddy press… trying to create a snazzy custom web application.

    I want to generate two lists of users… alphabetical order

    Affiliate Members (based on role)
    —————–
    Professional Members (based on role)

    ….. I realize I probably don’t need to run the loop twice on the page if I could query the information like how I would in WP_Query…

    How can I filter the members based on User Roles… and how can I run the loop twice on page, do I need to reset the query?

    Any advice?

Viewing 4 replies - 1 through 4 (of 4 total)

  • coffeywebdev
    Participant

    @coffeywebdev

    because I’d like to split them up with a header for each section..

    i.e.

    <h2>Affiliate Members</h2>, then the loop

    <h2>Professional Members</h2>, then the loop


    coffeywebdev
    Participant

    @coffeywebdev

    I have decided that due to the nature of S2 Membership’s logic, this would be far too difficult to do than it is worth.. I found a work around…

    ISSUE RESOLVED


    youmin
    Participant

    @youmin

    Hi cofeewebdev will you please share your solution. Thanks in advance


    coffeywebdev
    Participant

    @coffeywebdev

    I would love to!

    But my solution is basically an s2 membership hack.. so it doesn’t really apply to buddypress..

    I just hacked up my members loop, and stuck some s2 membership code in there.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Members Loop – Filter by User Role’ is closed to new replies.
Skip to toolbar