Hi,
I have a multisite with 5 blogs on it. I want all the blogs to retrieve some of the fields from the main site options page. Is that possible?
This did not work:
switch_to_blog( 1 );
$field = get_field( $field, 'option' );
restore_current_blog();
Thanks in advanced,
Yuval
The problem is that the field is not defined in each of the sites and only in the main site. Even switching to the blog will not correct this problem. There are two choices
1) create the field group in every site
2) use the WP function get_option() instead of the ACF function. Example: get_option('options_'.$field, 'default_value');