Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9179649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:51:03+00:00 2026-06-17T17:51:03+00:00

Is it possible to use wp_query to create a list of all the WordPress

  • 0

Is it possible to use wp_query to create a list of all the WordPress users for a site and their data? If so, how?

I want to be able to list ALL the users (the site is open to new registrations) and all their details such as name, username etc as well as some custom meta’s that I’ve added in the format:

function my_user_contactmethods($user_contactmethods) {

$user_contactmethods['Address'] = __('Address');
$user_contactmethods['Website'] = __('Website');
$user_contactmethods['Phone'] = __('Phone');
$user_contactmethods['Nationality'] = __('Nationality');
$user_contactmethods['Registering as'] = __('Registering as');
$user_contactmethods['Submit work'] = __('Submit work?');
$user_contactmethods['Attend'] = __('Attend?');
$user_contactmethods['Volunteer'] = __('Volunteer?');

// etc for each field you want to appear

return $user_contactmethods;

}

Or if there’s another way to do it then I’m completely open.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:51:05+00:00Added an answer on June 17, 2026 at 5:51 pm

    If you are okay with not using wp_query , you can use get_users and get_user_meta to retrieve list of all users and their custom data.

    For example,

    <?php
        $blog_id = 1; //blog id
        $str = 'blog_id='.$blog_id;
        $users = get_users($str);
        $list = array();
        $i=0;
        foreach ($users as $user) {
           $list[$i]['id']=$user->ID;
           $list[$i]['email']=$user->email;
           $list[$i]['custom-1']= get_user_meta( $$user->ID, 'custom-1', true );
           $i++;
        }
    
    ?>
    

    You can retrieve the fields that you want. Or you can just add all data and attach your custom fields with them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have Wordpress generate this type of unordered list? <ul id=nav1>
I'm creating a new plugin for WordPress that requires an outside website to use
I'm developing sites using Wordpress and I want to use the lates version of
I'm relatively new to PHP. I'm wondering if it's possible to simply create a
I'm building a WordPress based AJAX site, where I use jQuery and the .get()
is it possible use the ko.computed write function on the foreach $data variable like
I used Json to get data off a site build in Wordpress (using the
Possible Duplicate: Unable to insert data into multiple wordpress tables According to the above
Is it possible use mod_rewrite to resolve addresses hosted on another server? Say I
Is it possible use a MySQL query to perform this kind of check? If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.