/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php query_posts('category_name=wordpress&showposts=5'); ?> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a></li> <?php endwhile; ?>