Support

Account

Home Forums General Issues wp_get_recent_posts where ACF field is null Reply To: wp_get_recent_posts where ACF field is null

  • Hi Neil,

    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.