Custom Post Type pagination – normal solutions aren’t helping

This solution is a little tricky:

  • add this plugin WP Page Numbers.
  • change the WordPress Reading setting from admin panel from 10(which is the default) to 1 .(the point after making it 1 is to avoid page not found 404 error)

  • In the page you would like to show the custom posts we need to change the query by adding our options to the default query:

<?php $newQuery='showposts=5&post_type=custom-post-type-name&page=".$paged."&'.$query_string; ?>

<?php query_posts($newQuery); ?>

what we did here is we added our options without changing the default query.

hope helpful.Please tell us in case that didn’t work with you.

Leave a Comment