Title: Two posts &#8211; same day &#8211; date disappears
Last modified: August 18, 2016

---

# Two posts – same day – date disappears

 *  [edwardandrews](https://wordpress.org/support/users/edwardandrews/)
 * (@edwardandrews)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/)
 * I use the following code in my main template to show the date and time of the
   post.
 * Written by <?php the_author(); ?> on <?php the_date(); ?> at <?php the_time();?
   >
 * If I have two posts on the same day, the date on the second one disappears on
   the second one. I know I can get it to appear by putting (‘F jS, Y’) after the_date,
   but I would like the format of the date to be controlled by the General Options
   date setting.
 * You can see the problem [here](http://tarrant.org.uk/2005/11/26/).
 * Any suggestions?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290105)
 * There is a whole section in the Codex describing every template tag. [Template_Tags/the_date](http://codex.wordpress.org/Template_Tags/the_date)
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290107)
 * Use `the_time` instead of `the_date`
 * See:
    [Template_Tags/the_time](http://codex.wordpress.org/Template_Tags/the_time)
   [Template_Tags/the_date](http://codex.wordpress.org/Template_Tags/the_date)
 * Oops see moshu got to this.
 *  Thread Starter [edwardandrews](https://wordpress.org/support/users/edwardandrews/)
 * (@edwardandrews)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290595)
 * I have looked at both those Codex entries already.
 * To quote [Template_Tags/the_date](http://codex.wordpress.org/Template_Tags/the_date)
 * > Displays the date using defaults.
   > <p>Date posted: <?php the_date(); ?>
 * I want to display the date using defaults, so I use the code i put in my first
   posting. BUT, on the second occasion on one page, the date does not appear. On
   the second occasion, what appears is
 * > Written by Edward Andrews on at 1:46 pm
 *  NO DATE!!
 * Any ideas?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290596)
 * If you read the Description for [the_date()](http://codex.wordpress.org/Template_Tags/the_date),
   you would find it says:
 * > When there are multiple posts published on the same date on a page, **the tag
   > will only display the date the first time it’s called.**
 * And:
 * > Note: To display the date for posts individually, use [the_time()](http://codex.wordpress.org/Template_Tags/the_time)
   > instead with a date-specific format string.
 * If you need to force the default format for your date, here’s a little trick 
   for it:
 * `<?php the_time(get_settings('date_format')); ?>`
 *  Thread Starter [edwardandrews](https://wordpress.org/support/users/edwardandrews/)
 * (@edwardandrews)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290625)
 * Thank you.
 * Edward

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

The topic ‘Two posts – same day – date disappears’ is closed to new replies.

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * 5 replies
 * 4 participants
 * Last reply from: [edwardandrews](https://wordpress.org/support/users/edwardandrews/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/two-posts-same-day-date-disappears/#post-290625)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
