I have a problem with the pagination on my category pages. I have researched this for a few days now without any luck finding any solutions online.
Here's the problem, when you select "older" or "newer" posts on the particular category page it takes you back to the home page of my site (but this url shows: /test/page/2) with the filtered posts of the home page displayed.
I don't have specific category.php templates, but the theme has a pagination.php file and a wp page-navi.css.css hard coded.
This is the pagination.php 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>
I 'm a loss on how to fix this. Both the Main Index Template and Archive.php file calls up this pagination file.
Any help will be hugely appreciated.