Skip to content

Instantly share code, notes, and snippets.

@apatton-cnet
Created July 16, 2013 13:45
Show Gist options
  • Save apatton-cnet/6008826 to your computer and use it in GitHub Desktop.
Save apatton-cnet/6008826 to your computer and use it in GitHub Desktop.
$args = array(
'post_type' => 'my_image_post_type',
'tax_query' => array(
array(
'taxonomy' => 'body_part',
'field' => 'slug',
'terms' => 'arm'
)
)
);
$query = new WP_Query( $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment