Home › Forums › General Issues › Front end posting to multiple blog › Reply To: Front end posting to multiple blog
Hi ,
Thank you for your reply. I saw that api.php file & save action. but I can’t understand what will I change. Is this way correct?
$bids = array(1, 2);
foreach ($bids as $bid) :
switch_to_blog($bid);
do_action('acf/save_post', $post_id);
endforeach;
switch_to_blog( $original_blog_id );
Where I Put save function? Please help me. I can post to multiple blog at same time using wp_insert_post($post). but that time acf field not saving. Please…
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.