I have a custom events post type in WordPress (with recurring events being saved as children to the main event) I have a few custom taxonomies set up which only saves the custom taxonomy data to the parent event post, but what I am trying to figure out is how to filter the results (including the recurring children posts) by the custom taxonomies. At current I have something similar to:
$args = array(
'post_type' => 'incsub_event',
'posts_per_page' => 50,
'post_status' => array( 'recurrent', 'publish'),
'meta_query' => array(
array(
'key' => 'incsub_event_start',
'value' => array( $date_1, $date_2 ),
'type' => 'DATETIME',
'compare' => 'BETWEEN'
),
array(
'key' => 'incsub_event_fee',
'value' => array( '10', '1000' ),
'type' => 'NUMERIC',
'compare' => 'BETWEEN'
),
array(
'key' => 'incsub_event_status',
'value' => 'open',
'type' => 'BINARY',
'compare' => '='
),
),
'tax_query' => array(
array(
'taxonomy' => 'location',
'field' => 'slug',
'terms' => 'uk',
),
),
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_key' => 'incsub_event_start'
);
But it will only return the parent posts not the children, I would be grateful to anyone who could shed some help on the matter?