query_posts multiple custom taxononies AND/OR post category
i have a site which uses two custom post types, each of which has its own custom taxonomy. the homepage of the site grabs anything in these post_types which is set to ‘current’ in the taxonony, as well as any general news posts which use ‘current’ as their category.
i’ve been calling each of them in sets of query_posts, but would like to be able to grab everything with this ‘current’ label and show them sorted by date. i’m trying something like this:
$args = array( 'post_type' => array('sbc-portfolio','post','sbc-services'), 'taxonomy' => array('portfolio','services'), 'term' => 'current', 'category_name' => 'current', 'orderby' => 'date', 'order'=> 'DESC', 'posts_per_page' => -1 );
this, of course, is failing, since it is trying to find something that is set to current as both taxonomy and category. what i want to do is be able to say:
-from every post type
-grab the posts with this term OR this category
-order ALL by date
is this even possible?
- The topic ‘query_posts multiple custom taxononies AND/OR post category’ is closed to new replies.