Home › Forums › General Issues › ACF not visible on translated pages WPML › Reply To: ACF not visible on translated pages WPML
I’m pretty sure that the WPML contains a function to retrieve the $post_id of the current Languages version of an ID. For example, you could change your code to:
array (
'param' => 'page',
'operator' => '==',
'value' => wpml_get_current_post_id(8),
'order_no' => 0,
'group_no' => 0,
),
Then, the ID will become dynamic to the language you are viewing in.
Please note that I have used a made up function, and you need to research on the WPML api to find the correct function.
Thanks
E
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.