Taxonomy Query Possible?
-
Hi,
When running a query using connected_type, connected_items, connected_direction, etc., is there a way to narrow down the posts that Posts 2 Posts returned to such posts which are tagged with one or more specific terms from a custom taxonomy?
Essentially what I’m looking for is a
tax_queryfunctionality that applies to the connected posts.Something like the following (see the
connected_tax_query) would be ideal, but I haven’t found a way to achieve this yet:$posts = get_posts(array( 'post_type' => 'post_type_a', 'connected_type' => 'post_type_b', 'connected_items' => $list_of_narrowed_down_candidates, 'connected_direction' => 'to', 'connected_tax_query => array( etc. ), 'nopaging' => true, 'suppress_filters' => false ));Is this possible, or what would be the best way to implement this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Taxonomy Query Possible?’ is closed to new replies.