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