"Older" posts link looping to first page
-
I’m really new to working with the PHP code in WordPress. Is anyone able to explain to me why the “Older” button on my blog just loops right back to the same page? The URL shows it’s going to page 2, 3, 4, etc, but it appears the same as the first page. Here’s my code:
<?php if (get_option('paging_mode') == 'default') : ?> <div class="pagination"> <?php previous_posts_link(__('Newer')); ?> <?php next_posts_link(__('Older')); ?> <?php if (function_exists('wp_pagenavi')) wp_pagenavi(); ?> </div> <?php else : ?> <div id="pagination"><?php next_posts_link(__('LOAD MORE')); ?></div> <?php endif; ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘"Older" posts link looping to first page’ is closed to new replies.