Home Forums General Issues Get Option from WPML default language Reply To: Get Option from WPML default language

  • Yeah, put this in your functions.php:

     * Advanced Custom Fields Options function
     * Always fetch an Options field value from the default language
    function cl_acf_set_language() {
      return acf_get_setting('default_language');
    function get_global_option($name) {
    	add_filter('acf/settings/current_language', 'cl_acf_set_language', 100);
    	$option = get_field($name, 'option');
    	remove_filter('acf/settings/current_language', 'cl_acf_set_language', 100);
    	return $option;

    Then for usage, it’s: get_global_option('phone_number');

    Credit goes to indrek_k in this thread: