Display user meta

also watch:

global $wpdb;

$argsa =array( ‘role’ => ‘aamrole_53673234ba574 ‘ );
$a = get_users( $argsa );
$argsb =array( ‘role’ => ‘ aamrole_5329589cf0296 ‘ );
$b = get_users( $argsb );
$agentusers = array_merge( $a, $b );
foreach($agentusers as $agentuser)
<div class=”agent-detail”>

<div class=”box” style=”margin-bottom:20px;”>
<h6 class=”service-title”><div class=”img” style=”height=100%; width:20%; float:left;”><?php echo  get_avatar( $agentuser->user_email); ?></div>Agent: <?php echo $agentuser->nickname; ?></h6>
<h6 class=”service-title”>Location: <?php echo $agentuser->location; ?></h6>
<h6 class=”service-title”>Email: <?php echo $agentuser->user_email; ?></h6>



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: