Support

Account

Home Forums General Issues ACF not visible on translated pages WPML Reply To: ACF not visible on translated pages WPML

  • Hi @mantismamita

    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