So I’ve been trying to create a template that will create a list of user names (only subscribers), their email address, and web address and I’m having no luck. I’ve been using the following code but still nothing is showing up.
$args = array();
$args = 'user_firstname';
$args = 'user_lastname';
$args = 'user_email';
$args = 'user_url';?>
< ?php $wp_user_search = new WP_User_Query( array( 'role' => 'subscriber', 'fields' => $args ) ); ?>
< ?php $subscribers = $wp_user_search->get_results(); ?>
any help would be appreciated.
Thanks in advance
You must be logged in to reply to this topic.