I have created my category.php to display all the posts (i am using custom post) in the category.
By default, it's displaying 10 entries, and when i scroll down, i wanna fetch the next 10 entries with jquery infinite scroll. The problem is when i added the following lines to my template, it shows the link(href) to "/category/category_name/page/2" which returns 404.
<?php if($loop->max_num_pages > 1) : ?> <nav id="page-nav" class="navigation" role="navigation"> <?php previous_posts_link('≪ Previous', $loop->max_num_pages); ?> <?php next_posts_link('More ≫', $loop->max_num_pages); ?> </nav> <?php endif; ?>
How should i set my link (href) so that it fetch the next 10 entries in the same category?