Support

Account

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?