meta_query between two date in wordpress not working

I tried meta_query but not working.

Need post data between particular date 2016-01-01 to 2017-01-01 but not working my code is :

$args = array( 
     'post_type' => 'post',
    'order' => 'ASC',
    'orderby' => 'title',
    'category' => array( 7, 11, 463, 409 ),
    'post_status' => array('publish'),  
    'posts_per_page' => -1,
     'meta_query' => array(
        array(
            'key' => 'post_date',
            'value' => array("2016-01-01", "2017-01-01"),
            'compare' => 'BETWEEN',
            'type' => 'DATE'
        )
    )
    );

Read more here: meta_query between two date in wordpress not working

Leave a Reply

Your email address will not be published. Required fields are marked *