Posted By

alexeihidalgo on 04/04/11


Tagged


Versions (?)

Para crear un loop de wordpress


 / Published in: PHP
 

  1. <?php query_posts(array('category_name' => 'qwerty', 'posts_per_page' => 5));
  2. if (have_posts()): while(have_posts()): the_post(): ?>
  3.  
  4. // el contenido
  5.  
  6. <?php else: ?>
  7. no existe nada
  8. <?php endif; endwhile; ?>

Report this snippet  

You need to login to post a comment.