Forums

Way to make home autoload the latest post? (3 posts)

  1. nipponese
    Member
    Posted 2 years ago #

    I'd like to make my home page default to the permalink of the latest post. Does anyone happen to know of a plugin that does this?

  2. esmi
    Theme Diva & Mod
    Posted 2 years ago #

    You could try adding <?php if (is_home()) query_posts('showposts=1');?> just before The Loop:

    <?php  if (is_home()) query_posts('showposts=1');?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();
  3. spiritbased
    Member
    Posted 2 years ago #

    Does this work for anyone? It doesn't for me. I want to show the actual post, i.e. the 'single.php' as the homepage.

Topic Closed

This topic has been closed to new replies.

About this Topic