Custom taxonomies not translating in WPML
-
Hi,
I have a custom category of dishes which are related to a custom post of recipes. A recipe can have 1 or more dishes. I then use pod templates to display the single recipe along with it’s ‘dishes’, by doing this:[each dish] <div class="dish-item"> <img src="{@dish_icon}" /> <span>{@name}</span> </div> [/each]
This works fine, until I set the custom dish taxonomy to translatable in WPML. The loop still works correctly to the amount of ‘dishes’ selected, however, {@dish_icon} & {@name} do not show the relevant data. I tried to troubleshoot in many ways and also added all the translated data for each dish category. With or without the translatable option, the translated version (secondary language) of the site (including the translated pod template) never show these ‘dishes’ in the recipe details page. Nor the copy of the primary language and not even the translated ones. I’d like to emphasise that on the primary language, the each loop and the magic tags show the correct data. The issue occurs as soon as the taxonomy is made translatable.
I would also like to point out that if I use the dishes as a magic tag, like this;{@dish}
the, dishes and their name are displayed correctly, but never in the secondary language. And this is also an issue because i wouldn’t be able to display the{@dish_icon}
.
Any help would be greatly appreciated.
Thanks in advance.
- The topic ‘Custom taxonomies not translating in WPML’ is closed to new replies.