WP_Query with cpt-onomies children terms
-
Hello,
I’ve a small problem.
I want to display players from teams. Teams are cpt-onomies.
Teams are hierarchical :Team A
– 2013
– 2012
Team B
– 2013
– 2012Player 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 ?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP_Query with cpt-onomies children terms’ is closed to new replies.