WP Page Numbers
Pageing not working with custom loop / post type (2 posts)

  1. Bobz
    Posted 5 years ago #


    I have problem with pageing on my site, when i try to go to page 2, i get error 404.
    I have custom post type, and using custom query in category.php
    Here is my loop:

    $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    query_posts($query_string . '&post_type=shop-article&posts_per_page=9&paged='.$paged);
    if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <!-- Content -->
    <?php endwhile;
    if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif;
    else :  _e('<h1 class="error">No products</h1>');

    Anyone can help?

    Here is example: http://dev.chill.hr/?cat=3


  2. Nukeface
    Posted 4 years ago #

    Did you manage to fix this issue? I'm having a similar problem where i get 404 pages if i adjust the amount of posts on the page (default 10 posts works correctly)...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Page Numbers
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic