eewee_content_nav

Display navigation to next/previous pages when applicable.

Description

eewee_content_nav( $nav_id ); 

Parameters (1)

0. $nav_id
The nav id.

Usage

  1. if ( !function_exists( 'eewee_content_nav' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The nav id. 
  5. $nav_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = eewee_content_nav($nav_id); 
  9.  

Defined (1)

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

/functions.php  
  1. function eewee_content_nav( $nav_id ) { 
  2. global $wp_query; 
  3.  
  4. if ( $wp_query->max_num_pages > 1 ) : ?> 
  5. <nav id="<?php echo $nav_id; ?> nav-single"> 
  6. <ul class="pager"> 
  7. <!--<h3 class="assistive-text"><?php //_e( 'Post navigation', 'eewee' ); ?></h3>--> 
  8. <li class="previous"> 
  9. <?php next_posts_link( __( '← Older posts', 'eewee' ) ); ?> 
  10. </li> 
  11. <li class="next"> 
  12. <?php previous_posts_link( __( 'Newer posts →', 'eewee' ) ); ?> 
  13. </li> 
  14. </ul> 
  15. </nav><!-- #nav-above --> 
  16. <?php endif;