wp_set_object_terms and arrays
I doubt it would justify the effort of writing custom SQL queries for only 2500 posts. Within the wp_set_object_terms( $object_id, … ) function we have: $object_id = (int) $object_id; so it’s correct that it only takes a single post id as input. So you would need to loop over your $post_ids array but it might … Read more