Feed on
Posts
Comments

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; ?>


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.