• Resolved amberturner

    (@amberturner)


    I am having issues with a client site in which I have used posts as portfolio entires. For some reason, each page in the older/newer page navigation shows the same 10 posts, and I am not sure why.

    Here are the categories in which it does it:
    http://jessicablakedesigns.net/drawings/
    http://jessicablakedesigns.net/paintings/
    http://jessicablakedesigns.net/faux/

    It may do it on the blog too but there are not enough posts on the blog to test it. These categories have 14 posts for drawing, 39 for faux, and 13 for furniture, so I know that they have more than 10 posts per category (which is the number I have set in the admin panel to be the max shown on the page).

    Can anyone suggest where I should start looking to resolve the issue?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Are you using query_posts on any of these category templates? That can mess with pagination.

    Thread Starter amberturner

    (@amberturner)

    Yeah, this is the start of my loop:

    <?php $catname = wp_title('', false); ?>
    <?php query_posts("category_name=$catname"); ?>
    <?php if(have_posts()) : while(have_posts()): the_post(); ?>

    Any way to keep that same function but allow for the pages to show different posts?

    Try:

    <?php
    $catname = wp_title('', false);
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'category_name' => $catname,
    	'paged' => $paged
    );
    query_posts($args);
    ?>
    <?php if(have_posts()) : while(have_posts()): the_post(); ?>
    Thread Starter amberturner

    (@amberturner)

    Yes!! Worked like a charm!! Thank you very much!

    I had the same problem and it is working well on pages with many posts.

    Now I have still the problem, that the navigation on single post display is not working

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress Older/Newer Post Navigation Issues’ is closed to new replies.