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
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.