Hi there,
I am using 2 different languages with WPML. I have created a Toolset relationships. I have 2 different items. One is called "Operator" and the second one is called "Offers".
The relationship is setup as ONE TO MANY. ("Operator" to many "Offers")
In WPML only the "Operator" items are set from my side to be translatable. The "Offers" items are not translatable because for every country there are dedicated offers (sometimes more in one country then the other).
My problem is now that I have the "Operator" item in English as default language, and in German as translated.
If I link the "Offer" item with the "Operator" item (default language in English), this offer item is also linked to the translated German version.
What can I do to hide them on the German translated "Operator" item?
Hi,
Thank you for contacting us and I'd be happy to assist.
Your observation is correct and Toolset maintains the post relationships only between the posts in the primary language. For translated secondary language posts, the relationship information is inherited from their respective primary language post.
For what you're planning, you'll need a workaround. You can add two check box type custom fields with your "Offers" post type:
- Available in English
- Available in German
These extra fields will allow you to conditionally show/hide particular "Offer" posts in each language, as needed.
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar