WP_Query Get Posts Published in the last 24 hours

0
24
$args = array(
 'post_type' => 'post',
 'posts_per_page' => '10',
 'date_query' => array(
 array(
 'after' => '24 hours ago'
 )
 )
 );
$the_posts = new WP_Query( $args );

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*