WordPress Random post (last 3 days posts)
You can use this code for show last 3 days post. Best of luck… $args = array( ‘post_status’ => ‘publish’, ‘type’ => ‘news’, ‘posts_per_page’ => 2, ‘order’ => ‘rand’, ‘date_query’ => array( array( ‘after’ => ‘3 days ago’ ) ) );