Posted By

ronal on 06/04/11


Tagged

wordpress query posts


Versions (?)

Wordpress Query Posts


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.