Skip Navigation

[Resolved] Toolset Relationships One to Many / WPML

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 5.66 hours from now. Thank you for your understanding.

Author
Posts
#2199637

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?

#2200287

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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