Problems showing the_time()
-
I’m trying to display the date next to title of my post and I have the following line bit of PHP.
<?php the_time(‘F jS, Y’); ?>
This is returning ’12 March 2009′ which isn’t right! It should be returning March 12, 2009. I’ve tried various combinations and nothing I do seems to change the output. What I really want is to show the month on one line and the day (numberical) on another with a nice background image (like so many WordPress themes).
I’ve done this before on other themes and it’s worked fine. Does anyone know if there’s either an issue with 2.7 (all the other themes I’ve done have been older versions of WordPress) or whether there could be something wrong elsewhere (maybe in another file in my theme or in my WordPress installation)? Or am I just being thick!?
Any help would be appreciated.
Jon
- The topic ‘Problems showing the_time()’ is closed to new replies.