WordPress.org

Ready to get started?Download WordPress

Forums

Date/time stamp code (4 posts)

  1. lawtonan
    Member
    Posted 4 years ago #

    Hey all -- I had a theme custom-designed on StrictlyRight.com. Unfortunately the designer is MIA to make the necessary changes, so I'm on my own and couldn't figure this out. If you look at the bottom of all the posts where it says the date and time, it will only give the 'hour' of the time. For example, if I post something at 12:31 AM, it will show up as "0 AM." I was wondering what I had to change to get it to show the full time in 12-hr clock.

    Thanks!

  2. MichaelH
    Member
    Posted 4 years ago #

    See the template tag, the_time(), or the_date() and look at Template Hierarchy to figure out what template to change.

  3. lawtonan
    Member
    Posted 4 years ago #

    I figured that part out MichaelH, thank you. I'm just unsure of what to change it to. Presently, the tag is set as:
    <?php the_time('F jS, Y G A') ?>

  4. MichaelH
    Member
    Posted 4 years ago #

    The Formatting_Date_and_Time has a description of each of those 'codes' and a list of other codes you might use.

Topic Closed

This topic has been closed to new replies.

About this Topic