• Resolved miromiro

    (@miromiro)


    In Reading/options, I have set display pages to ’10’ – which works fine on Search returns, Archives, Category pages.

    On index.php I have used this snippet

    <?php query_posts('posts_per_page=2'); ?>

    To restrict the posts displayed on the homepage to 2 – works a treat. However, since implementing this, the previous_posts nav on the bottom of the homepage no longer works:

    <?php next_posts_link('&laquo; Older entries') ?>

    now points to the correct place, ie.,

    http://www.examplesite.com/blog/page/2/

    but serves up the index.php page again.

    Any help greatly appreciated.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter miromiro

    (@miromiro)

    Alas, no. Don’t sweat it, fool4Christ: I am really thrilled that it is working as is, the fresh icon is not a big deal. Thanks again.

    One last try? lol!

    if ( is_home() && !is_paged() ) {
    if ( $i == 1 ) { ?>
    <img src="<?php bloginfo('template_directory');?>/images/fresh.gif" id="fresh" alt="Newest Post" title="This post is guaranteed to be freshly published"/>
    <?php } } ?>
    Thread Starter miromiro

    (@miromiro)

    Ta da! It works – perfectly. Thanks fool4Christ – perhaps you could turn it into a plugin for others who would like to achieve the same thing? 😉

    Really appreciate all the hours you have put into this.

    Cheers!

    I guess it isn’t exaggeration if I say I fully believe in, “If it doesn’t work the first time, keep guessing till it does.”

    Glad you finally got it working! 😀

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Page navigation broken’ is closed to new replies.