Return to Snippet

Revision: 28264
at July 6, 2010 03:12 by sawyer


Initial Code
<?php query_posts('cat=4');
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

     //post output goes here... index.php typically provides a good template

<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>

Initial URL

                                

Initial Description

                                

Initial Title
Query posts by category

Initial Tags
wordpress

Initial Language
PHP