Home › Forums › Backend Issues (wp-admin) › Multisite Repeater update_field issues › Reply To: Multisite Repeater update_field issues
Hi John,
Thanks for the speedy response.
The field groups do already exist on the site I am publishing from. Although they do have different field keys.
The repeater field key is field_5d14dda3d0dcc.
The repeater sub field key is field_5d14ddb4d0dcd.
Do these keys need to be the same across the multisites?
The way we’re building our repeater array is shown here:
//this is done before we use switch_to_blog()
$downloads = get_field('downloads', $original_post->ID, false)
$repeater_values = [];
foreach ($downloads as $download) {
$repeater_values[]['field_5df8e6a37e4c1'] = $download['field_5d14ddb4d0dcd']; //meta key of the sub field. first key is the target site, second key is current site.
}
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.