Date by season / quarter
-
Instead of the normal date / time, I want to display the season in which a post was made. So for instance, march-may = spring (03-05).
I found this topic, but the plugin is no longer accessible.
I know it should be really simple to do, but I just can’t hack it. I’ve tried:
<?php if ( '3' == date('n') ) : ?> <p>It's March</p> <?php else: ?> <p>Not February</p> <?php endif; ?>
Which detects the current month, rather than the post month. But when I try to combine with the post date it doesn’t go:
<?php if ($post_date( '3' == date('n') ) ) : ?> <p>It's March</p> <?php else: ?> <p>Not February</p> <?php endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Date by season / quarter’ is closed to new replies.