make a link to the newest post in wordpress
October 17th, 2010 by Lawrence David
you can make a link to the newest post in a wordpress blog with just a little php:
<?php
$latestposts = get_posts(‘numberposts=1′);
foreach($latestposts as $post) :
setup_postdata($post);
?>
<a href=”<?php the_permalink(); ?>”>Newest</a>
<?php endforeach; ?>