bp_dtheme_content_nav

Display navigation to next/previous pages when applicable.

Description

bp_dtheme_content_nav( (string) $nav_id ); 

Parameters (1)

0. $nav_id (string)
DOM ID for this navigation

Usage

  1. if ( !function_exists( 'bp_dtheme_content_nav' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-themes/bp-default/functions.php'; 
  3.  
  4. // DOM ID for this navigation 
  5. $nav_id = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_dtheme_content_nav($nav_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-themes/bp-default/functions.php  
  1. function bp_dtheme_content_nav( $nav_id ) { 
  2. global $wp_query; 
  3.  
  4. if ( !empty( $wp_query->max_num_pages ) && $wp_query->max_num_pages > 1 ) : ?> 
  5.  
  6. <div id="<?php echo $nav_id; ?>" class="navigation"> 
  7. <div class="alignleft"><?php next_posts_link( __( '← Previous Entries', buddypress ) ); ?></div> 
  8. <div class="alignright"><?php previous_posts_link( __( 'Next Entries →', buddypress ) ); ?></div> 
  9. </div><!-- #<?php echo $nav_id; ?> --> 
  10.  
  11. <?php endif;