Title: Adding a date stamp
Last modified: August 19, 2016

---

# Adding a date stamp

 *  Resolved [Seamhead](https://wordpress.org/support/users/seamhead/)
 * (@seamhead)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/)
 * Hello,
 * My website ([http://www.seamheads.com](http://www.seamheads.com))includes a handful
   of categories on my index page, starting with “Top Stories,” which shows the 
   date of the latest post. The other categories, however, don’t show the dates 
   of the posts. Is there a simple way to get the dates of these posts to display
   as it does in the “Top Stories” section?
 * Any help would be appreciated.
 * Thanks!
    Mike

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433752)
 * Could be you need to use the [template tag](http://codex.wordpress.org/Template_Tags),
   [the_time()](http://codex.wordpress.org/Template_Tags/the_time), rather than 
   [the_date()](http://codex.wordpress.org/Template_Tags/the_date), in your template.
 * Quote from [the_date()](http://codex.wordpress.org/Template_Tags/the_date)
 * > SPECIAL NOTE: When there are multiple posts on a page published under the SAME
   > DAY, the_date() only displays the date for the first post (that is, the first
   > instance of the_date()). To repeat the date for posts published under the same
   > day, you should use the Template Tag the_time() with a date-specific format
   > string.
   >  Use <?php the_time(get_option(‘date_format’)); ?> to add the date 
   > set in the admin interface. (if you have problems, try removing the quotes 
   > around date_format. Both seem to work.)
 * Related:
    [Stepping Into Template Tags](http://codex.wordpress.org/Stepping_Into_Template_Tags)
   [Stepping Into Templates](http://codex.wordpress.org/Stepping_Into_Templates)
   [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [Seamhead](https://wordpress.org/support/users/seamhead/)
 * (@seamhead)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433755)
 * Just tried that and nothing happened. I even removed the quotes. Any other suggestions
   that I might try?
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433760)
 * With the help of the [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   article, determine what [Template](http://codex.wordpress.org/Templates) is displaying
   those posts. Then please paste all the code from that template into a pastebin
   such as [wordpress.pastebin.com](http://wordpress.pastebin.com), and report the
   link back here.
 * Maybe someone can spot your problem. Thanks.
 * Also provide a link to download the theme you are using.
 *  Thread Starter [Seamhead](https://wordpress.org/support/users/seamhead/)
 * (@seamhead)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433765)
 * If I did this correctly, here’s the code:
 * [http://wordpress.pastebin.com/mZQTxDQ5](http://wordpress.pastebin.com/mZQTxDQ5)
 * Here’s the theme I’m using:
 * [http://www.studiopress.com/themes/news](http://www.studiopress.com/themes/news)
 * Thanks!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433813)
 * That template does look like it uses `the_time()` so look for other template 
   files (e.g. home.php) in that theme folder that display posts and add the_time().
   If necessary, ask the developer if they have any suggestions.
 *  Thread Starter [Seamhead](https://wordpress.org/support/users/seamhead/)
 * (@seamhead)
 * [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433897)
 * Worked like a charm! Thanks for all your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Adding a date stamp’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Seamhead](https://wordpress.org/support/users/seamhead/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/adding-a-date-stamp/#post-1433897)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
