Home › Forums › Backend Issues (wp-admin) › Force Select Menu to load all results › Reply To: Force Select Menu to load all results
I just try this code in my functions.php to see if it have any effects on taxonomy field without any result ? That very strange. Or I do not do it correctly.
add_filter('acf/fields/taxonomy/query', 'my_acf_fields_taxonomy_query', 10, 3);
function my_acf_fields_taxonomy_query( $args, $field, $post_id ) {
// Show 40 terms per AJAX call.
$args['number'] = 40;
// Order by most used.
$args['orderby'] = 'count';
$args['order'] = 'DESC';
return $args;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.