Artist Members

    'last_name', 'orderby' => 'meta_value', 'role__in' => array('artist', 'artistplus', 'emerging'), 'posts_per_page' => '-1' ); $user_query = new WP_User_Query( $args ); //get total number of artist members and divide by three to find out where the column divs should go $user_divided_by_three = ceil($user_query->total_users / 3); //start index at 1 for easier counting $index = 1; if ( ! empty( $user_query->results ) ) : foreach ( $user_query->results as $user ) : ?> ID; $full_name = graphW_get_full_name($user_id); //if the user is an artist plus member show link if ( in_array( 'artistplus', (array) $user->roles ) ) : ?>
    • '; } $index++; endforeach; else : echo 'No artists yet!'; endif; ?>