Support

Account

Home Forums ACF PRO Fields in custom Taxonomy and WPML translation management Reply To: Fields in custom Taxonomy and WPML translation management

  • Thanks James.
    So if the only way is to load the ID of the term I thought a way but I don’t know if its possible.
    The second language on the site is Greek. Greek lang has the ‘el’ language code. When I duplicate the taxonomy for the second language, WPML adds automatically the suffix ‘-el’ on the end of the slug.

    So here is what I thought:

    1)Leave the code as it is
    2)Strip with php the suffix so always will have the same value If the current language is greek.

    So now I’m having this

    $us_size = get_field('us_' . $productBrandSlug[0], $term);
     $uk_size = get_field('uk_' . $productBrandSlug[0], $term);

    The $term is an object. Can I load valued based on term slug? If this is possible I can make it work by following the workflow I told you above.

    Thanks