Same term in new taxonomy – how?
-
The situation:
– I have lots of terms in the “Category” and “Tag” taxonomy.
– I have created a custom taxonomy, and I want to add terms and posts.
– When adding a term, I want to reuse terms which already exist in other taxonomies.However, when calling
wp_set_object_terms($postId, $termName, $taxonomy)
, WordPress always creates a new term, resulting in a new, ugly slug.How can I tell WordPress to use existing terms in the new taxonomy?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Same term in new taxonomy – how?’ is closed to new replies.