Create a Page template for that static page and use the template tag, wp_get_archives() in that template. The type=postbypost and limit=1 parameters should work:
<?php wp_get_archives('type=postbypost&limit=1'); ?>
Also see:
Stepping into Templates
Stepping into Template Tags
This helps a lot, but I am interested in actually displaying the post rather than just the title and a link. Do you happen to know how to do this?
Thanks so much,
Daniel
On the_content() page it says
The <!–more–> quicktag will not operate and is ignored if there is only one post being displayed.
Is there a workaround for this?
Thanks,
Daniel
Even if it was… you’d run into another roadblock: the more tag is absolutely not working on Pages.
What do you mean not working?
The <!–more–> quicktag will not operate = not working = useless.
The Retrieve a particular post section of the Codex article, Template_Tags/query_posts shows this code (placed before The_Loop ) to make a Page honor <!--more-->.
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
This does not seem to work for get_posts()
See below
<?php
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
$lastposts = get_posts('numberposts=2');
foreach($lastposts as $post):
setup_postdata($post);
?>
<div id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_time('F j, Y') ?> - <?php the_title(); ?></a></h2><!-- by <?php the_author() ?> -->
<?php the_content(); ?>
</div>
<?php endforeach; ?>