Convert Custom Taxonomy to Custom Meta Value
-
We have a large custom post type with extra custom taxonomies that are used to save info such as ‘brand’ , ‘year’ and ‘production company’. This worked fine until we introduced multiple languages via WPML. After extensive research, it seems that when a post is duplicated into another language, if there is no translation for the taxonomy the value does not get copied over. For example, if a post has the year taxonomy set to ‘1972’ when it’s duplicated to another language, this value is not duplicated. It would duplicate if we created a taxonomy translation of 1972 in every language, but this not logical, as 1972 translates to 1972 in all languages we are using.
However, if we use a custom meta box, and save 1972 as a custom value, this WILL duplicate over. Therefore the question:
Does anyone know of a simply method to convert custom taxonomy values to a custom meta value? I am sure we can create a special php function that will do this, but I though I would ask first before hacking a solution from scratch.
Thoughts? Ideas?
- The topic ‘Convert Custom Taxonomy to Custom Meta Value’ is closed to new replies.