the_date
-
Hi, I want to compare the current date with the date of the post itself. My goal is to display all the posts from which the posting date is greater than the date of today (for an event calendar).
<?php $datetoday = date("d-m-Y"); $datepost = the_time("d-m-Y"); if ($datetoday < $datepost) ?> ***show the post***
I know this code is wrong, but I hope someone with more knowledge of PHP can rewrite it into decent PHP.
Thanks a lot!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘the_date’ is closed to new replies.