Forums

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

  1. nipponese
    Member
    Posted 4 months 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
    Member
    Posted 4 months 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 1 month 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.

Reply

You must log in to post.

About this Topic