i’ve a problem with the relationship field, that no values are loading on the search.
It seems that the problem occurs, because we have to many entries in the table. If i test the same setup with fewer entries it is working as expected.
Have some one an idea how i can fix this issue? Maybe that it is loading 10 entrie only?
thanks in advance for your help
You can make use of the acf/fields/relationship/query hook to modify the $args array which is used to query the posts shown in the the relationship field list.
You can have something as follows:
function my_relationship_query( $args, $field, $post )
// increase the posts per page
$args['posts_per_page'] = 25;
add_filter('acf/fields/relationship/query', 'my_relationship_query', 10, 3);
You can read up on this here: http://www.advancedcustomfields.com/resources/acf-fields-relationship-query/