Support

Account

Home Forums General Issues SELECT2JS Reply To: SELECT2JS

  • what is strange is that when i use the filter as written in demo only to test, my list is empty (there are line items but no text…

    function my_post_object_result( $title, $term, $field, $post_id ) {
    
        // add the term's slug to each result
        $title .= '(' . $term->slug .  ')';
    
        return $title;
    
    }
    
    add_filter('acf/fields/taxonomy/result', 'my_taxonomy_result', 10, 4);