$blogusers = get_users('orderby=nicename&role=subscriber');
?>

    <ul class="blog-items">
      <?php 
foreach ($blogusers as $user) {
    $role_des = get_user_meta($user->ID, 'hg_profile_des', true);
    $role_dev = get_user_meta($user->ID, 'hg_profile_dev', true);
    $role_mar = get_user_meta($user->ID, 'hg_profile_mar', true);
    $role_biz = get_user_meta($user->ID, 'hg_profile_biz', true);
    $matchmaking = get_user_meta($user->ID, 'hg_profile_match', true);
    ?>
      <li class="blog-item sixteen columns">
        <figure class="six columns alpha">
          <?php 
    echo hg_user_profilepic($user->ID);
    ?>
  		  </figure>

        <div class="item-details ten columns omega">
          <div class="item-heading clearfix">
            <h2><?php 
    echo $user->user_displayname;
    ?>
</h2>
          </div>
          <div class="blog-excerpt">
            <p>Email: <?php 
    echo $user->user_email;
    ?>
</p>
Beispiel #2
0
              <ul>
                <li><a href="<?php 
    echo wp_logout_url('/');
    ?>
" title="Logout">Logout</a></li>
                <?php 
    if (is_admin()) {
        ?>
                  <li><a href="/wp-admin/">Backend</a></li>
                <?php 
    }
    ?>
                <li><a href="/messages">Messages</a></li>
                <li><a href="/attendees">Attendees</a></li>
                <li><a href="/profile"><?php 
    echo hg_user_profilepic();
    ?>
 <?php 
    echo $current_user->username;
    ?>
 <?php 
    echo $current_user->last_name;
    ?>
 </a></li>
              </ul>
            </div>
          <?php 
} else {
    ?>
            <div id="social-login">
              <ul>