Home › Forums › Backend Issues (wp-admin) › WP User frontend pro not saving ACF values to Database › Reply To: WP User frontend pro not saving ACF values to Database
the first code you posted is probably working. The only way to know for sure is to look in the DB to see if the field key reference meta key was added.
$get_meta = get_post_meta('32', "payment_options", true);
print_r($get_meta);
echo "<br>";
// update field will always return false
// if the value used to update matches the value
// in the database.
// The if will always be false even if the update succeeds.
if(update_field('payment_options', $get_meta, '32')){
echo "Success";
}
else{
echo "FAIL";
}
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.