Posted By

selfmadepsyche on 02/17/09


Tagged

wordpress


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

nerdfiles
FlamesOfDestiny
rezzz


Display Recent Posts


 / Published in: PHP
 

  1. <?php query_posts('showposts=5'); ?>
  2. <ul>
  3. <?php while (have_posts()) : the_post(); ?>
  4. <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
  5. <?php endwhile;?>
  6. </ul>

Report this snippet  

You need to login to post a comment.