Home › Forums › Bug Reports › get_field does not return values,in WPMU with 'switch_to_blog' › Reply To: get_field does not return values,in WPMU with 'switch_to_blog'
I was able to determine the conditions under which this phenomenon occurs.
When I get the value of a custom field of Site2 that are not defined in Site1,
I text field can be acquired. However repeater field could not be obtained.
In my environment, I just added the definition of the same custom field and Site2 to Site1, were able to correctly get the value of the repeater field.
I definition of custom fields, was read by the plug-in model.
However, it was subjected to the same test in the other WP environment, even if there is no definition of the custom field in Site1, were able to correctly get the value of the repeater field.
I do not know of two environment differences.
Do you have something you the idea?
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.