Support

Account

Home Forums ACF PRO WP_Query and sub-fields Reply To: WP_Query and sub-fields

  • Hi @huwrowlands

    That’s weird. Your query should search only the post in the current week. Could you please tell me how did you set the date? Did you use the repeater field? Also, could you please try this query:

    $args = array(
        'posts_per_page' => -1,
        'post_type'      => 'schedule',
        'meta_query'     => array(
            array(
                'key'     => 'schedule_time_slot_%_schedule_date',
                'compare' => '=',
                'value'   => $mon,
            )
        )
    );

    If that doesn’t work, could you please share the JSON export of your field group?

    Thanks 🙂