Advertisement
Guest User

WP-Smooth Members Loop Problem

a guest
Jan 24th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.13 KB | None | 0 0
  1. <ul id="members-list" class="item-list" role="main">
  2.  
  3.     <?php while ( bp_members() ) : bp_the_member(); ?>
  4.  
  5.         <li>
  6.             <div class="item-avatar">
  7.                 <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
  8.             </div>
  9.  
  10.             <div class="item">
  11.                 <div class="item-title">
  12.                     <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
  13.  
  14.                     <?php if ( bp_get_member_latest_update() ) : ?>
  15.  
  16.                         <span class="update"> <?php bp_member_latest_update(); ?></span>
  17.  
  18.                     <?php endif; ?>
  19.  
  20.                 </div>
  21.  
  22.                 <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
  23.  
  24.                 <?php do_action( 'bp_directory_members_item' ); ?>
  25.  
  26.                 <?php
  27.                  /***
  28.                   * If you want to show specific profile fields here you can,
  29.                   * but it'll add an extra query for each member in the loop
  30.                   * (only one regardless of the number of fields you show):
  31.                   *
  32.                   * bp_member_profile_data( 'field=the field name' );
  33.                   */
  34.                 ?>
  35.             </div>
  36.  
  37.             <div class="action">
  38.  
  39.                 <?php do_action( 'bp_directory_members_actions' ); ?>
  40.  
  41.             </div>
  42.  
  43.             <div class="clear"></div>
  44.         </li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement