I’ve a customized publish kind, with a customized taxonomy. I’m making an attempt to use two phrases to a publish.
$term1 = 35;
$term2 = 36;
wp_set_post_terms( $this->postId, [$term1, $term2], "my_tax");
This solely units the primary time period.
Stepping by the code, in taxonomy.php, for each objects (35 and 36), the next traces each return the identical knowledge
First time
$term_info = term_exists( $time period, $taxonomy ); // time period is 35
Second time
$term_info = term_exists( $time period, $taxonomy ); // time period is 36
$term_info in each instances incorporates the identical as beneath: as a consequence, just one time period is being utilized to the publish
array(2) (
[term_id] => (string) 35
[term_taxonomy_id] => (string) 35
)