Skip to content

Instantly share code, notes, and snippets.

@xafarali
Created June 19, 2013 01:18
Show Gist options
  • Save xafarali/5810993 to your computer and use it in GitHub Desktop.
Save xafarali/5810993 to your computer and use it in GitHub Desktop.
Get Post by Taxanomy terms
<?php
$args = array(
'post_type'=> 'services',
'areas' => 'painting',
'order' => 'ASC'
);
$the_query = new WP_Query( $args );
if($the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment