WordPress Date & Time Formatting
Call it OCD, but I’m a little anal when it comes to designing layouts because I want them to look exactly how I envision it. When I started using WordPress, I had to learn through dozens of tutorials and FAQ’s to create my current theme.
One issue I came across was the ability to display the date on all entries. I noticed that when I published two or more entires in one day, the date would only show on the more recent post of that day, leaving an empty line between the title and category. The code I originally used was:
<?php the_date() ?>
After scouring the Internet for a solution, I realized that in order to display the date on all entries, I would have to change the code to this:
<?php the_time(‘j’) ?> <?php the_time(‘F’) ?> <?php the_time(‘Y’) ?>
This is a longer, more specific code that tells the page to load the date, month, and year every time, regardless of multiple entries in one day.
I hope you find this helpful because it took me a while to figure it out!
For more information on customizing the date and time, check out WordPress Codex.
Possibly Related Posts:
- WordPress Upgrade is Unstable
- Extract Color Palettes
- Gravatar
- WordPress Subscribe-to-Comments Plugin
- Abstract Watercolor in Adobe Photoshop


WordPress Date & Time Formatting | ShareFavorite
Posted Wednesday, September 30th, 2009 at 2:00 pm
[...] posted here: WordPress Date & Time Formatting Related [...]
Reyna Galas
Posted Sunday, April 25th, 2010 at 9:53 pm
Hey, I found your blog in a new directory of blogs. I dont know how your blog came up, must have been a typo, anyway cool blog, I bookmarked you.