Hi,
i use ACF in combination with breakdance and the breakdance post loop builder.
I want to query the players of a team by their position. Goalkeepers, Defenders, …
For the players and the teams i use a Bidirectional relationship.
It takes about 10 seconds to load the page.
Has someone an idea why it takes so long?
return
array(
'post_type' => 'spieler',
'meta_query' => array(
'relation' => 'AND',
array(
'key' => 'sp_position',
'value' => 'Tor',
'compare' => '='
),
array(
'key' => 'team_spieler',
'value' => '"' . get_the_ID() . '"',
'compare' => 'LIKE',
),
),
'orderby'=>'meta_value',
'meta_key' => 'sp_nachname',
'order'=>'ASC',
);
Screenshot Loop:
Screenshot ACF Player:
This reply has been marked as private.