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.
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.