How to get posts published on the latest date?
You can do it like this: if ( have_posts() ) : /* Queue the first post, that way we know * which date we’re dealing with. * * We reset this later so we can run the loop * properly with a call to rewind_posts(). */ the_post(); // receive the latest post timestamp $latest_post_timestamp = … Read more