Posted By

javifr on 10/29/10


Tagged

wordpress query


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vehler


Query posts - simple, out of loop custom


 / Published in: PHP
 

  1. <?php query_posts('posts_per_page=5&post_type=tratamiento');?>
  2. <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
  3. <a href="<?php the_permalink();?>"><?php the_title();?></a>
  4. <?php endwhile; endif; wp_reset_query();?>

Report this snippet  

You need to login to post a comment.