how to get the events based on the locations taxonomies,
i have created a custom taxonomy for location post type, and now i want to get the events based on the location taxonomy i have created, am trying with the custom wp query as
$args = array('post_type' => 'event','post_child'=>'location', 'tax_query' => array( array( 'taxonomy' => 'kind_of_location', 'field' => 'slug', 'terms' => 'restuarant' ) ) ); $my_query = new WP_Query($args);
but it doesn’t returning anything, what is wrong here, post_child works here ? or how can i get it?
- The topic ‘get events based on location taxonomies’ is closed to new replies.