Created
December 1, 2017 22:53
-
-
Save digitalhydra/56735fd640e0f6964eed3bb638ce8b97 to your computer and use it in GitHub Desktop.
search by taxonomie
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
query_posts( array( 'post_type' => 'myportfoliotype', 'paged' => $paged, 'posts_per_page' => 80, | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'categories', //or tag or custom taxonomy | |
'field' => 'id', | |
'terms' => array('9', '13') | |
) | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment