WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. maorb
    Member
    Posted 4 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,
    Maor

    http://wordpress.org/extend/plugins/simple-custom-post-type-archives/

  2. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 4 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
    Member
    Posted 3 years ago #

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

    <?php
    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
    Member
    Posted 3 years ago #

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

  5. Justin Sternberg
    Member
    Posted 3 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

About this Topic