• Resolved berniemann

    (@berniemann)


    Hi, first of all, let me say that I love Pods and the way you work, guys. Thank you very much. Since the last Pods updates (2.8 and 2.8.1), I have found an issue working with a multilanguage website using WPML. Let me explain the issue with a simple case I have reproduced from scratch:

    -I’m using WPML to create a multi-language website.
    -I create two different Custom Post Types with Pods 2.8.1.
    -I create a bidirectional relationship field on each pod relating the other pod
    -I create a Post of each CPT and I relate them in the commented relationship field.
    -I set Both CPT as ‘Translatable – use translation if available or fallback to default language’ on WPML.
    Up to this point, everything works fine, as usual.

    -I generate a simple pods template calling the relationship using [each…]{@name}[/each].
    -I enable automatic pod templates for the pod and I assign the template.
    -The template works fine with the default language and shows the related items on the post front page.
    -I set the Pods Templates as ‘Translatable – only show translated items’ in WPML
    -I translate the Template to other languages leaving the template title blank

    Here comes the problem:
    -When I change the language in the front, the related posts aren’t shown on the post front page, they are only shown with the default language, but not in the other languages.
    -If I make the related pod as ‘Not translatable’ in the WPML settings, then the related posts are shown in all the languages, but if I do so, the pods that are now not translatable, are only shown in the default language, and I want them as ‘Translatable – use translation if available or fallback to default language’.

    Sorry for the detailed and long explanation. I was just trying to reproduce the issue step by step. Maybe I’m missing something, but before updating to Pods 2.8, the translated templates were showing the relationships in all languages and at the same time the posts were appearing as translated, having set all the custom post types as ‘Translatable – use translation if available or fallback to default language’ (Make ‘Pod’ appear as translated).

    I hope you can give me a hand.
    Thanks a lot!

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    Additional improvements to the WPML integration went out today with Pods 2.8.2, you can now update directly from www.remarpro.com

    Thread Starter berniemann

    (@berniemann)

    Fantastic, thank you!

    @berniemann @sc0ttkclark Thank you sooo much for sorting this out! I signed up here to let you know because it helps a lot. I am a little embarressed, that it was only unchecking one checkbox (Adjust IDs for multilingual functionality). I think a lot of people are struggling with this issue: Content of relationship fields won’t show up.

    I will describe my case for others, having trouble with this:

    custom post types “book” & “person”, both in the WPML setting set to “translate, if availible, if not show original” (or something like this)

    the book has got a relationship field where I can select from person.

    In the loop of of book when I now print my $post->person, IT WORKS and prints an array BUT when I changed to my other language the $post->person is just EMPTY.

    Solution: unchecking the checkbox “Adjust IDs for multilingual functionality” in WPML -> Languages

    Now in both languages is works!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Issue with WPML and Pods Templates since 2.8’ is closed to new replies.