Return to Snippet

Revision: 24401
at March 1, 2010 11:01 by ignacio


Initial Code
<?php $my_query = new WP_Query('category_name=fotografia&showposts=3'); ?>
<?php if (have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>

	<?php the_title(); ?>
	<?php the_content(); ?>

<?php endwhile;
endif;
?>

Initial URL

                                

Initial Description

                                

Initial Title
WP_query to create multiple loops (category columns)

Initial Tags
wordpress

Initial Language
PHP