Advertisement
Guest User

BuddyPress Members-, Groups Pagination at bottom

a guest
Jul 17th, 2010
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  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');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement