Home › Forums › ACF PRO › Fields in custom Taxonomy and WPML translation management › Reply To: Fields in custom Taxonomy and WPML translation management
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, $term); $uk_size = get_field('uk_' . $productBrandSlug, $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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!