Support

Account

Home Forums Backend Issues (wp-admin) Change Taxonomy Terms to Slugs in Admin Post Editor Reply To: Change Taxonomy Terms to Slugs in Admin Post Editor

  • Hey Jonathan

    Ok, we could see how the multi-select works.
    What filter would be used to modify this to include the slug?

    And to modify my first post, we only need the one set of terms to show.

    Here’s the filter from the documentation. Is this what we use?

    <?php
    
    function my_taxonomy_query( $args, $field, $post_id ) {
        
        // modify args
        $args['orderby'] = 'count';
        $args['order'] = 'ASC';
        
        
        // return
        return $args;
        
    }
    
    add_filter('acf/fields/taxonomy/query', 'my_taxonomy_query');
    
    ?>