Posted By

tomdowning on 09/21/11


Tagged

wordpress


Versions (?)

WP Tax Query


 / Published in: PHP
 

  1. $wp_query = new WP_Query(
  2. array('post_type' => 'post_type',
  3. 'tax_query' => array(
  4. 'taxonomy' => 'tax_type',
  5. 'field' => 'id',
  6. 'terms' => id number
  7. ),
  8. ),
  9. 'order' => 'DESC',
  10. 'orderby' => 'date',
  11. )
  12. );

Report this snippet  

You need to login to post a comment.