I am running this query to print out my posts. It works but I want to add a parameter that tells the system to only display posts that are from today or will be published in the future!
Here is the query:
$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
);
I tried to do something like &post.date = <= $today
but that didn't work.
please, can anyone tell me how to do it?
My idea is to tell the query to only show posts with a publishing-date that is today or "less" than today. That's why the " <= "
.