Support » Plugin: ProfileGrid - User Profiles, Groups and Communities » Create lists of users based on custom field?

  • Resolved virtualgeorge


    I want to create pages for each state that show my registered users from that state only, not just sorted by the state field. I would have a custom field added to the profile for “State”, is this possible?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support profilegrid0



    Thank you for writing to us.

    This feature is not available.

    In case you have any questions, please raise a ticket on
    We try to respond to all inquiries at earliest.


    Not sure if this will help you, but this is what I use for something that looks like you are looking for. I create templates with the following code:

    $args = array(
    ‘order’ => ‘ASC’

    // The Query
    $user_query = new WP_User_Query( $args );

    // User Loop
    if ( ! empty( $user_query->get_results() ) ) {
    foreach ( $user_query->get_results() as $user ) {
    if ( $user->pm_field_20 == “xxxxxx”) {
    echo ‘<p>’ . $user->display_name . ‘</p>’;
    } else {
    echo ‘No users found.’;

    If you want to know fast which pm_field_xx you want, you can use this:

    $all_meta_for_user = get_user_meta( 2 );
    print_r( $all_meta_for_user );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create lists of users based on custom field?’ is closed to new replies.