I solved it this way:
add_filter( 'acf/update_value/name=card_number', '__return_null' );
I’m having the same problem, but this solution is showing a Cannot modify header information
warning after the form is submitted.
Having the same problem here.
Waiting for a solution.
@despecial In my case, it was a theme related bug. I’ve just removed duplicated rows in database.
But, it happened to me in another occasion and I solved it deleting the acf-json folder in my theme.
+1
And I would love this feature for Flexible Content too.
I found the problem. It was a database problem. Some rows were duplicated because of a theme bug and the plugin was having problems finding the right row to apply the changes. So, not a ACF problem. Thank you for your help!
Hi Elliot.
I tested now with only ACF and addons activated and default theme… Nothing changed. The bug persists. :\
And NOW I found the solution on the documentation.
Sorry. I’ll try to read first before I post again. 🙂
Sorry. Just had to use the same logic found on Customize the relationship field list query.
Here’s the code:
add_filter( 'acf/fields/post_object/query', 'change_posts_order' );
function change_posts_order( $args ) {
$args['orderby'] = 'date';
$args['order'] = 'DESC';
return $args;
}
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.