Forums

Date not showing in some posts (4 posts)

  1. Lauren
    Member
    Posted 3 years ago #

    I've noticed that when I make two posts in one day, the date will only show under the most recent post. Any ideas? Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I think that's the default WP behaviour when there's more than 1 post on the same day. If you were also displaying the post time, you'd see a different timestamp but not a date stamp on older post.

  3. Lauren
    Member
    Posted 3 years ago #

    Ah, I see. Thank you, esmi!

  4. dakranii
    Member
    Posted 2 years ago #

    From the WordPress Codex:

    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.

    http://codex.wordpress.org/Template_Tags/the_date

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags