Custom Taxonomy and query_posts
-
Hi All,
I have the below line of code:
query_posts(array('post_type' => 'cars', 'posts_per_page' => 18, 'taxonomy' => 'model_types', 'term' => array('bentley', 'audi'), 'paged' => $paged, 'showposts' => 18));
As you can see I’m trying to filter my post based on multiple terms which I will eventually get from a query in the URL but it is not pulling any posts in those 2 terms.
It works with 1 but it won’t work passing in an array of 2 or more.
Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Taxonomy and query_posts’ is closed to new replies.