||Thread Tools||Display Modes|
How to include post date code in post title
I'm creating templates, and I'd like to include code in the post title that automatically pulls in and displays the post date. E.g., if I were to manualy do this without code, the title might be:
May 7, 2009 - Lecture
but I want the title in the template to look something like this
[the correct code for the date] - Lecture
I've tried using the following variants, and the date part all comes up blank.
<span class="time"><?php the_time('F j, Y'); ?> - Lecture
<span class="time"><?php the_time('F j, Y'); ?></span> - Lecture
<span class="time"><?php the_time('F j, Y'); ?></span></p> - Lecture
I've successfully gotten this to work before, but I can't remember how I did it.
Site: hhttp://www.matthaag.com/ [live]
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to show Date and Time Under Post Title?||peterlaz6||General Discussion||5||03-04-2010 08:12 AM|
|How to Add Date in Post Title ?||EJF||General Discussion||5||01-21-2010 05:26 PM|
|date above title, and comments below post||sourapplestudio||General Discussion||4||11-15-2009 09:29 AM|