Support

Account

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…