Oyblix
Forum Replies Created
-
As I said, my last screenshot shows how inconsistent it is. For the first four entries, the term id is – as you noted – the same (i.e. the same term is used for different taxonomies). But for the last three, this is not the case. (I understand why the top 4 and the bottom 3 are separated, as they arent absolutely identical.)
Even better, this illustrates how it all seems quite inconsequent:
SELECT term_id, name, slug, taxonomy FROM
wp_termsNATURAL JOIN wp_term_taxonomy WHEREname= ‘Mat og Drikke’To illustrate, here’s a screenshot of the result when querying for a term:
SELECT * FROM
wp_termsWHEREname= ‘Mat og Drikke’I’m not reusing taxonomies, I’m simply having the same term in different ones. This gives a conflict because WordPress can’t properly recognize that the new term already exists in the database, and therefore makes a duplicate. As the term is identical, so is the proposed slug, and therefore, it creates a “-2” version of it.
Well yea, I get that. It’s just that the structure of terms and taxonomies gives me the impression that if you try to create a term in one taxonomy, and that term already exists in another taxonomy, WordPress would just create a new relation for the same term, not create a duplicate. The term title is identical.