Home › Forums › Bug Reports › add_filter('acf/fields/taxonomy/query') bug › Reply To: add_filter('acf/fields/taxonomy/query') bug
I remove the is_admin() tag from the if & still got no reaction.
+ as test I put this in the functions.php file:
function my_taxonomy_query( $args, $field, $post_id ) {
// modify args
$args['orderby'] = 'count';
$args['order'] = 'ASC';
echo '<pre>';
print_r( $args );
echo '</pre>';
exit;
// return
return $args;
}
add_filter('acf/fields/taxonomy/query', 'my_taxonomy_query');
Is it possible the ajax call is never done because its a frontend form?
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.