Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ($wp_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <?php pagination('Prev','Next'); ?>
- </div><!-- #nav-below -->
- <?php endif; ?>
- *******************************
- The default WP pagination is designed to work on posts sorted by date, so 'Prev' would refer to earlier posts and 'Next' would refer to later posts. I put in the default pagination because I know that it will work. Now that we know that the other parts work, we can put in the custom pagination that came with the theme.
- Replaced the pagination Mac wrote for testing the query post
- <?php if ($wp_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Prev', 'custom3' ) ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Next <span class="meta-nav">→</span>', 'custom3' ) ); ?></div>
- </div><!-- #nav-below -->
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement