Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

BuddyPress Members-, Groups Pagination at bottom

By: a guest on Jul 17th, 2010  |  syntax: PHP  |  size: 0.88 KB  |  hits: 243  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // members pagination at members-loop.php bottom
  2. function tf_members_pagination_links() {
  3. ?>
  4.  
  5.         <div class="pagination" style="margin:0;">
  6.  
  7.                 <div class="pag-count" id="member-dir-count">
  8.                         <?php bp_members_pagination_count() ?>
  9.                 </div>
  10.  
  11.                 <div class="pagination-links" id="member-dir-pag">
  12.                         <?php bp_members_pagination_links() ?>
  13.                 </div>
  14.  
  15.         </div>
  16.        
  17. <?php
  18. }
  19. add_action('bp_after_directory_members_list', 'tf_members_pagination_links');
  20.  
  21. // groups pagination at groups-loop.php bottom
  22. function tf_groups_pagination_links() {
  23. ?>
  24.  
  25.         <div class="pagination" style="margin:0;">
  26.  
  27.                 <div class="pag-count" id="group-dir-count">
  28.                         <?php bp_groups_pagination_count() ?>
  29.                 </div>
  30.  
  31.                 <div class="pagination-links" id="group-dir-pag">
  32.                         <?php bp_groups_pagination_links() ?>
  33.                 </div>
  34.  
  35.         </div>
  36.        
  37. <?php
  38. }
  39. add_action('bp_after_groups_loop', 'tf_groups_pagination_links');