• Resolved sarahlaw

    (@sarahlaw)


    Hi there,

    I’m using the Fresh Blog theme at http://www.jadeleonard.com/blog, but the most recent post isn’t showing on the front page (current post is April 22; newest post is April 23). If you click “uncategorized” you will find a more recent entry (April 23).

    No matter how many entries are posted, the most recent one doesn’t come up on the front page and I can’t figure out why. There is no issue with the posts when using different themes.

    Could anyone point me in the right direction on how to fix this?

    Thanks,
    Sarah

Viewing 4 replies - 1 through 4 (of 4 total)
  • stvwlf

    (@stvwlf)

    Hi

    Look at template file /wp-content/themes/{themename}/index.php See if there is a line of code on that page that starts with query_posts(…

    If so, paste that entire lINE of code in here

    I suspect the homepage is set up to skip over the most recent post. A reason a theme might do that is if it is intended to display the most recent post as a featured post, formatted differently or with more detail than the other posts. Then the main posts loop might start with the 2nd post as the 1st one will already have been displayed. If you can find that line of code we can take a look at what it is saying.

    Thread Starter sarahlaw

    (@sarahlaw)

    From the index.php file:

    <?php query_posts('showposts=10&amp;offset=1'); ?>
        <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>

    Thanks for looking into this for me. All help is much appreciated 🙂

    stvwlf

    (@stvwlf)

    Excellent – its just as I thought it might be.

    Remove &offset=1 from the query_posts line – leave everything else on that line exactly as it is – and you will have your most recent post back

    Thread Starter sarahlaw

    (@sarahlaw)

    I’ve done that and it works perfectly – thanks so much for the help.

    Such a small thing makes a BIG difference!

    Cheers.

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

The topic ‘most recent post not showing’ is closed to new replies.