Advertisement
alchymyth

Untitled

Mar 25th, 2011
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. LOOP.PHP of TwentyTen - copy in child theme:
  2.  near the top:
  3.  
  4. <?php if( function_exists('wp_pagenavi') ) : ?>
  5. <div id="nav-above" class="navigation">
  6. <?php wp_pagenavi(); ?>
  7. </div>
  8. <?php else : ?>
  9.  <?php /* Display navigation to next/previous pages when applicable */ ?>
  10. <?php if ( $wp_query->max_num_pages > 1 ) : ?>
  11.     <div id="nav-above" class="navigation">
  12.         <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  13.         <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  14.     </div><!-- #nav-above -->
  15. <?php endif; ?>
  16. <?php endif; //end of if( function_exists() )//  ?>
  17.  
  18. second part near the bottom:
  19.  
  20. <?php if( function_exists('wp_pagenavi') ) : ?>
  21. <div id="nav-below" class="navigation">
  22. <?php wp_pagenavi(); ?>
  23. </div>
  24. <?php else : ?><?php /* Display navigation to next/previous pages when applicable */ ?>
  25. <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  26.                 <div id="nav-below" class="navigation">
  27.                     <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  28.                     <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  29.                 </div><!-- #nav-below -->
  30. <?php endif; ?>
  31. <?php endif; //end of if( function_exists() )//  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement