Posted By

javifr on 10/29/10


wordpress query

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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  


RSS Icon Subscribe to comments
Posted By: Jacky888 on September 26, 2018

review speaker student portable compatible mobil outdoor topportablespeaker

You need to login to post a comment.