Created
September 8, 2015 15:07
-
-
Save janisdonis/a70d6bd5a66557a1e765 to your computer and use it in GitHub Desktop.
Tax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = array( | |
'post_type' => 'products', | |
'tax_query' => array( | |
'relation' => 'AND', | |
array( | |
'taxonomy' => 'repa_products', | |
'field' => 'slug', | |
'terms' => 'excavators', | |
), | |
array( | |
'taxonomy' => 'used', | |
'field' => 'slug', | |
'terms' => 'used', | |
), | |
), | |
); | |
$query = new WP_Query( $args ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment