Support

Account

Home Forums Add-ons Repeater Field Repeater meta_value count in wp_postmeta not increasing Reply To: Repeater meta_value count in wp_postmeta not increasing

  • Ok.
    I worked this one out.
    The problem is caused by a conflict in priorities of the do_action.
    Both ACF and WPSC have a ‘save_post’ with a priority of 10.

    This is the referring article
    http://support.advancedcustomfields.com/forums/topic/text-area-fields-are-not-saving-on-update/

    To fix this without hacking the WPSC file (Which gets overwritten on an update) then add this to your functions.php file.

    if( has_action( 'save_post', 'wpsc_admin_submit_product' ) )
    {
    	remove_action( 'save_post', 'wpsc_admin_submit_product' );
    	add_action( 'save_post', 'wpsc_admin_submit_product', 1, 2 );
    }

    This will replace the ‘save_post’, ‘wpsc_admin_submit_product’ do_action with one that has a lower priority.

    This works for me and hopefully you.