Add today’s date and holiday to WordPress blogs
zieak ♦ January 14, 2009 ♦ 2 Comments
Years ago i spent hours collecting odd holidays and putting them into a script that would display the date and the day’s holiday (serious and silly) on my site. After years without it on my blog i decided to resurrect the script and add it to zieak.com once again. It is surprisingly easy to do with WordPress widgets.
- Log into the administration area of your blog at something like www.myblogaddress.com/wp-admin/
- On the left hand column part way down select “Widgets” under Appearance.
- In the center area of the Widget page click on “Add” next to Text.
- On the right side of the screen a new blue bar should appear with the label “Text” at the bottom of the list of Current Widgets.
- Click on “Edit” and label the widget “Today is…” or something similar.
- Open my holiday script and copy all of the text. Then paste it into the next field. Then click on “Done.”
- Drag the blue bar to the spot you would like the widget to appear in the sidebar of your blog.
- Click on “Save Changes” at the bottom of the right column of widgets.
- Republish your blog and you should now have a widget that displays the current date and at least one holiday for the day.
If you would like to have any holidays added to the script you can do it yourself by adding to the right line of the code (note that January is month zero so the rest are offset by one) or you can let me know and i’ll add it to the script for an updated version.
- Share this:
- StumbleUpon









That’s an interesting script, I’ve got it put up on my site.
Dennis, thanks for adding my script! I maybe should ask that people do a blog post and have a link back so word can spread about it. Or maybe i should write it as an an actual widget that can be downloaded and installed.