Home › Forums › General Issues › wp_get_recent_posts where ACF field is null › Reply To: wp_get_recent_posts where ACF field is null
I received some feedback about my reply… and I stand corrected. Here’s the feedback which should be helpful to you:
The WP_Query docs feature heaps of ‘meta’ args examples including ’empty’ – https://codex.wordpress.org/Class_Reference/WP_Query
I believe the meta_query value can be set to ‘NOT EXISTS’.
Also, a repeater field with 0 rows will be saved with a value of ‘0’, not ‘false’.
My apologies for incorrect info in my original reply.
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.