Support

Account

Home Forums General Issues Update Taxonomy of posts selected by acf relation field Reply To: Update Taxonomy of posts selected by acf relation field

  • In this line

    
    wp_set_post_terms($post->ID, $term_id, 'list', true);
    

    you need to change “list” to the slug of your taxonomy.