Simple Custom Post Type Archives
[resolved] pagination is not working with the plugin (5 posts)

  1. maorb
    Posted 5 years ago #

    First, I must say you're plugin is a life saver, letting easily have archive page for post type.
    It works great, but there's a problem with pagination.
    When browsing to http://www.mysite.com/archive-type/page/2
    I still get the first page viewed.
    Is there a fix for that?

    Many thanks,


  2. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 5 years ago #

    I just tested it again on 2 different sites, and pagination works as expected...

    Are you doing any post queries inside your template?

    Does it work if you add a trailing slash? http://www.mysite.com/archive-type/page/2/

  3. Justin Sternberg
    Posted 4 years ago #

    i had the same problem... i had to put something like this...

    query_posts( array('post_type' => books,  'paged' => $paged) ); if (have_posts()) : php while (have_posts()) : the_post(); ?>

    It's working for me now.

  4. maorb
    Posted 4 years ago #

    Thanks @jtsternberg, I actually forgot to use the paged='.$paged in my query
    Now it's working great :)

  5. Justin Sternberg
    Posted 4 years ago #

    took me a while to figure it out... so glad to help you out.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Custom Post Type Archives
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic