WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bobz
    Member
    Posted 3 years ago #

    Hi,

    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>');
    endif;?>

    Anyone can help?

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

    http://wordpress.org/extend/plugins/wp-page-numbers/

  2. Nukeface
    Member
    Posted 2 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

About this Topic