• Resolved melonic86

    (@melonic86)


    Hello.

    I have in issue since an update. I have pods 2.9.19 and WPML 4.6.4

    I have a custom pods call film and translate as movie. I make a custom template also call film and translate as movie.

    As you can see the custom page film show the translation of my texte from custom fields but not apply my translate custom template. It keep the French version. What can I do to correct this error?

    Thanks a lot for your help.

    Loïc

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter melonic86

    (@melonic86)

    The French page (original website langage).

    https://orcaproduction.ch/film/le-retour-du-balbuzard/

    Plugin Support pdclark

    (@pdclark)

    This depends on how your custom template is loaded, and how you are relating the film and movie content. (Are they separate post types, connected by a relationship field? Or different translations of one post type configured by WPML?) It’s difficult to say without seeing your exact code.

    I am also unsure when you say “not apply my translate custom template” whether you mean a custom PHP template is not loading (if so, where is that template stored and how is it queried in your theme?), or if you mean that the correct language is not loading for the film or movie content. When I try to load your linked pages, the site seems to be stuck on the “Orca Production” load screen.

    Making some assumptions, here are some options to consider:

    Hopefully those might point you in the right direction. If not, it might be helpful to share some more details about your exact configuration regarding how your translations, pods/post types, and theme files are organized.

    Thread Starter melonic86

    (@melonic86)

    Thanks a lot Paul. I found the issue.

    It’s strange but I have to call my translate template the same name than my default language template otherwise it’s not working.

    I call the original French template film, I have to name it in English also film and not movie for example.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @melonic86

    This is because of the way the template tag works. This tag looks for the template name (title) and not it’s ID. Therefore it isn’t automatically translated. This legacy code hasn’t changed for backwards compatibility.

    Cheers, Jory

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Translate Template issue’ is closed to new replies.