• i’m setting up a membership site to support a show and I want to give credit to all my paying members in the credits. I’ll need to do this on each weekly episode of the show. So I am going to need to produce a list of every current paid member’s first and last name, sorted by membership level every episode.

    Any recommendations on the best way to do this?

    https://wordpress.org/plugins/s2member/

Viewing 3 replies - 1 through 3 (of 3 total)
  • KTS915

    (@kts915)

    Try the AMR Users plugin. It works well with s2Member.

    Sam Rohn

    (@sam-rohn)

    amr users is a great plugin for listing wordpress users, works great with s2member

    you could also use code like this in a theme template file, this will grab all current members of a specified level and display the user name, this could be changed to display any other user meta, first name, last name, website, custom meta etc

    https://phptechnologytutorials.wordpress.com/2013/08/05/get-users-list-by-role-in-wordpress/

    <?php
    $args2 = array(
     'role' => 's2member_level1',
     'orderby' => 'user_nicename',
     'order' => 'ASC'
    );
     $authors = get_users($args2);
    echo '<ul>';
     foreach ($authors as $user) {
     echo '<li>' . $user->display_name. '</li>';
     }
    echo '</ul>';
    ?>

    sam

    Thread Starter Calvin Powers

    (@cspowers)

    Thank you for both the pointer to the plugin and the code! Very helpful

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Easiest Way to get a list of members by level?’ is closed to new replies.