Pods Relationship between 2 CPT and Polylang Synchronisation issue
-
Greeting!
I have a custom Theme that uses Polylang and Pods.
There are two Custom Post Types (CPT) defined on the theme: Routes and POIs (Point of Interest).
I used Pods to create a bi-directional relationship between the two CPTs, so one Route can relate to many POIs and one POI can relate to many Routes.
I created a Route CPT called “Section 1” in English and then created the corresponding “Seccion 1” in Spanish, using Polylang.
I created a POI CPT called “Pamplona Cathedral” in English and then created the corresponding “Catedral de Pamplona” in Spanish.
If in Polylang settings, Synchronisation is activated for “Custom fields”, whenever I connect a POI to a Route in one language, the corresponding Route in the other language looses it’s connected POIs. This happens when I click the “Update” button on one of the CPT screen (the corresponding CPT, Route in this case, looses it’s connected POIs). The connections do disappear on the “wp_podsrel” table, I checked.
If I disable “Custom fields” Synchronisation in Polylang settings, everything works as expected and I can connect POIs to Routes in both languages.
But, I would like to have “Custom fields” Synchronisation enabled, so when I create the Route translation (with the Polylang plus “+” button on the Route post screen) it copies the Custom fields to the other language.
Since you have Pods integrated with Polylang, maybe you can confirm this issue and post a fix.
Thank you very much in advance ??
- The topic ‘Pods Relationship between 2 CPT and Polylang Synchronisation issue’ is closed to new replies.