Posted By

raz on 10/26/10


Tagged

latest recent wordpres


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

raz
booski


Latest posts in sidebar


 / Published in: PHP
 

URL: http://wordpress.org/support/topic/recent-posts-in-sidebar

  1. <h3>Recent Stories from Dental Blog</h3>
  2. <ul>
  3. <?php
  4. $archive_query = new WP_Query('showposts=4');
  5. while ($archive_query->have_posts()) : $archive_query->the_post(); ?>
  6. <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
  7. <?php endwhile; ?>
  8. </ul>

Report this snippet  

You need to login to post a comment.