If the post date is today
-
I am trying to change my template to simply state today instead of the actual date when the post date equals todays date.
I tried:
<?php if($post->post_date==date()) { echo ‘today’; } ?>This didn’t seem to work at all. Any ideas?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘If the post date is today’ is closed to new replies.