Home Forums ACF PRO Filter By Year


Filter By Year

    • rpdoty

    • March 25, 2020 at 7:38 am

    I’d like to filter my posts using get_posts and meta_query and a custom date field. How do I return all posts where the custom date field is in 2020?

    Thank you.

    'meta_query' => array(
        'key' => 'date_field_name',
        'value' => 20200000,
        'type' => 'NUMERIC',
        'compare' => '>'
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.