I’ve a small problem.
I want to display players from teams. Teams are cpt-onomies.
Teams are hierarchical :
Player A belongs to ‘Team A -> 2013’ but not to ‘Team A’ (checkbox is not checked).
In databases, postmeta is right : only one instance of _custom_post_type_onomies_relationship with the id of the children term.
But when I make a query with
array( 'taxonomy' => 'custom post type', 'terms' => 'team-a', 'field' => 'slug' );
it returns me a list of players, including ‘Player A’. But this player is not tagged with ‘Team A’.
Could you explain me ? Or propose me a solution ?
- The topic ‘WP_Query with cpt-onomies children terms’ is closed to new replies.