Posted By

tomdowning on 09/21/11


Tagged

wordpress


Versions (?)

WP standard query


 / Published in: PHP
 

  1. query_posts(array(
  2. 'post_type' => 'post_type',
  3. 'paged'=>1,
  4. 'posts_per_page' => -1,
  5. 'post_status' => 'publish',
  6. 'order' => 'DESC',
  7. 'orderby' => 'date'
  8. )
  9. );
  10.  
  11. if (have_posts() ) : while (have_posts() ) : the_post();
  12.  
  13. endif; endwhile;

Report this snippet  

You need to login to post a comment.