• Resolved FabioG

    (@lando39)


    Hi,

    I have a custom category of dishes which are related to a custom post of recipes. A recipe can have 1 or more dishes. I then use pod templates to display the single recipe along with it’s ‘dishes’, by doing this:

    [each dish]  
      <div class="dish-item">  
        <img src="{@dish_icon}" />  
        <span>{@name}</span>     
      </div>  
    [/each]

    This works fine, until I set the custom dish taxonomy to translatable in WPML. The loop still works correctly to the amount of ‘dishes’ selected, however, {@dish_icon} & {@name} do not show the relevant data. I tried to troubleshoot in many ways and also added all the translated data for each dish category. With or without the translatable option, the translated version (secondary language) of the site (including the translated pod template) never show these ‘dishes’ in the recipe details page. Nor the copy of the primary language and not even the translated ones. I’d like to emphasise that on the primary language, the each loop and the magic tags show the correct data. The issue occurs as soon as the taxonomy is made translatable.

    I would also like to point out that if I use the dishes as a magic tag, like this; {@dish} the, dishes and their name are displayed correctly, but never in the secondary language. And this is also an issue because i wouldn’t be able to display the {@dish_icon}.

    Any help would be greatly appreciated.
    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter FabioG

    (@lando39)

    Hi,

    I know we’re not meant to bump threads, however I still haven’t managed to find a solution for this, regardless of the many attempts to troubleshoot. I would really appreciate any help about this. Thanks!

    Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    @keraweb may know more about this possibly.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lando39

    First of all, please accept my apologies for this extremely late reply.
    I totally missed this topic but if this is still an issue I’d like to help.

    The first thing I can think of is the auto-adjust-id’s setting from WPML. Since I’m guessing you are using the default WordPress term connections this setting is required for ID’s to be auto-translated by WPML.

    See WPML > Languages > “Make themes work multilingual” and enable the option. No idea why they name it themes only since this option is related to plugins as well.

    Hope this helps!

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom taxonomies not translating in WPML’ is closed to new replies.