• I’m using 2010 with a child theme…

    On my blog page, I have the “Older Posts” “Newer Posts” indicators showing top and bottom, as they should.
    https://www.infoprincess.com/artist-nook

    However, when you click either the newer/older navs, the same 3 posts show up. I have my settings>reading set to Show at most 2 posts, yet it shows 3 and I have about 20 older posts that don’t show anywhere. Any idea what’s causing this? Where do I start?

    I have read the codex articles for this subject and can’t make heads or tails out of them … any help is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • As a test, to see what the issue is (a theme or plugin), switch to default theme, deactivate all plugins, load site and test reading settings…

    Now with it (presumably) working as desired, activate your theme. Test.

    If still works as desired, activate plugins one at a time. Test.

    When it breaks, the last one activated is the culprit…Deactivate and find better one.

    Thread Starter Infoprincess

    (@infoprincess)

    Part of the Problem was solved.

    At the beginning of the loop.php file in my child theme, I found the following:

    <?php
    if ( is_home() || is_archive()) {
    query_posts($query_string . ‘&cat=-17&posts_per_page=5’ );
    }
    ?>

    Before I changed it, the posts_per_page wast set to =3 which explains why I was only getting the last 3 posts. I hope this helps someone along the way.

    However, I’m still looking for the solution as to why the <-Older Posts and Newer Posts -> doesn’t take me to the older/newer quotes. HELP!!!

    .

    Thread Starter Infoprincess

    (@infoprincess)

    I’ve done as instructed and the problem still exists. Here is the loop file code for the “newer posts”/”older posts”

    <?php
    if ( is_home() || is_archive()) {
    query_posts($query_string . ‘&cat=3&posts_per_page=5’ );
    }
    ?>

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 5 ) : ?>
    <div id=”nav-above” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘twentyten’ ) ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?></div>
    </div><!– #nav-above –>
    <?php endif; ?>

    Any more suggestions? This is frustrating …. thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Older Posts, Newer Posts’ is closed to new replies.