Link to latest post (1 post)

  1. sanstepsan
    Posted 5 years ago #

    I would like to have a link on my static homepage that opens up my latest post. I have tried the following - which works but also displays the post at the bottom of my homepage, which I do not want. The theme is Arjuna X.

    <?php query_posts('showposts=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
    <?php endwhile;?>

    Any ideas how to not show the post on the homepage?

Topic Closed

This topic has been closed to new replies.

About this Topic