I am using this query to display my posts:
$today = getdate();
$year=$today["year"];
$month=$today["mon"];
$day=$today["mday"];
query_posts( $query_string.'order=ASC' . '&post.status=future,publish'.'&year='.$year.'&monthnum='.$month );
?>
Now I want to add a filter to only show posts that have been published TODAY or will be published in the future.
Example: Today is the 22nd of March. PostA was published on the 1st of March, PostB has been published today and PostC will be published (status 'future' is already in my query, so it nevertheless will be displayed) on the 24th of March. My new filter for the query should only display PostB and PostC.
Thanks a lot in advance!
:-)
Try this :
Try This: