• Apologies if this is another recycled thread, but I can’t seem to find anything either here on on the Wiki.
    I would like to have the date/time stamp of each entry appear beneath each entry. I am having trouble getting this to work with multiple entires on the same date, though. The date appears on the latest entry for the date, but earlier entries on that same date only have the time displayed.
    Is there a workaround for this?
    (You can see it happening on the entries for today [01/07/2004] at https://www.selfgratification.org/ )
    Any pointers would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Cam

    (@cam)

    Thanks, Beel — much appreciated.

    waf

    (@waf)

    I would love to know how this was done.

    Kafkaesqui

    (@kafkaesqui)

    the_date() will only display for each new day/date, so for a date & time on each post, use a PHP date format string to specify this through the_time(), like so:

    <?php the_time('F j, Y @ g:i a'); ?>

    Which would display:

    “February 27, 2005 @ 3:00 pm”

    See the following for information on PHP date format characters:

    https://www.php.net/date

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date Display Troubles’ is closed to new replies.