Home Forums Front-end Issues Save/Update Post doesnt work (ACF Pro)


Save/Update Post doesnt work (ACF Pro)

  • Hi. I have the ACF Pro Developer Licence, and i have a problem on a page where ACF Frontend form doesnt save/update. It used to work, but i didnt noticed when it stopped working.

    The Page i have this form is WooCommerce Thank You page (thankyou.php). Also i have the form on another page (post-edit.php) and it works good there..
    Could be some issue with WooCommerce?

    The code is here

    $items = $order->get_items();
    	foreach ( $items as $item ) {
        $product_name = $item->get_name();
    $subscription_number = $order->get_order_number();
    $subscriptions_by = wcs_get_subscriptions_for_order( $subscription_number );
    	foreach ( $subscriptions_by as $singlesubid ) {
    	$subscrip_name = $singlesubid->get_order_number();
    	$subscrip_post_id = get_field('field_5c79b1a176e99', $subscrip_name);
    <?php /* THE FORM */ ?>
    <div id="content" class="site-content" role="main">
                                <?php /* The loop */ ?>
                                <?php while ( have_posts() ) : the_post(); ?>
                                <?php acf_form_head(); ?>
                                <?php acf_form(array(
    					'post_id'	=> $subscrip_post_id,
    					'post_title'	=> true,
    					'submit_value'	=> 'Save Opportunity',
    					'field_groups' => array('group_5c0fe3040af7f'),
    					'uploader' => 'basic',
    					'updated_message' => __("Opportunity is now updated", 'acf'),
    					'html_submit_button'	=> '<input type="submit" class="acf-button button submit-opportunity" value="%s" />',
    				/* 	'return' => '/my-account/my-opportunities/', */
    				)); ?>
                                <?php endwhile; ?>


Viewing 1 post (of 1 total)

The topic ‘Save/Update Post doesnt work (ACF Pro)’ is closed to new replies.