I am having issues coding a conditional statement, hoping someone here can help me out.
I have the following in my template:
Visits since <?php the_date('F d, Y', '', ''); ?>
Now if the date of the post is before July 2008, I just want it to display, July 2008 for all cases instead of grabbing the posts date.
If it’s August 2008 or later I want it to show the date of the post like I have above.
Playing with the If statement, but so far with out success.
Thanks for any insights!
- The topic ‘Conditional Statements and Dates’ is closed to new replies.