Posted By

ignacio on 03/01/10


Tagged

wordpress loops columns WPQuery miltiple


Versions (?)

WP_query to create multiple loops (category columns)


 / Published in: PHP
 

  1. <?php $my_query = new WP_Query('category_name=fotografia&showposts=3'); ?>
  2. <?php if (have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>
  3.  
  4. <?php the_title(); ?>
  5. <?php the_content(); ?>
  6.  
  7. <?php endwhile;
  8. endif;
  9. ?>

Report this snippet  

You need to login to post a comment.