Is it possible to in the code do like:
if date earlier than 2005 (show this) /if
else if date later than 2005 (show this) /if
hopefully can base it off of the year part of the entry date only pretty easily?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 07, 2008 4:38pm
Subscribe [0]#1 / Aug 07, 2008 4:38pm
Is it possible to in the code do like:
if date earlier than 2005 (show this) /if
else if date later than 2005 (show this) /if
hopefully can base it off of the year part of the entry date only pretty easily?
#2 / Aug 08, 2008 4:04am
The weblog:entries tag has an entry_date variable that you can define the output of with the format parameter. You could use this to compare dates in a conditional statement.