![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. THANKS.
__________________
------------------------------------- Configuration: Windows 7 WordPress 3.4.1 Genesis 1.8.2 Site: hhttp://www.matthaag.com/ [live] |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us