• Resolved nikflorida

    (@nikflorida)


    I am trying to format the date of a post, and I can’t get it to work. I am fairly certain I am using the correct code and the correct theme setting field… I am asking for a date in j h, s format (preferably j h, s #a#t g:ia, but I can live without the time), but it is displaying as: “on [time]”… I have refreshed and re-saved and so forth, without success … any ideas?

    [my site is at http://nikflorida.org and the timestamp should be in the “byline” setting area of each post]

    Thanks for any help you can provide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • where are you changing the time settings? In your theme?
    like index.php for your posts?

    <?php the_time('j h, s'); ?> at <?php the_time('g:i a'); ?> will take care of what you are trying…..

    Thread Starter nikflorida

    (@nikflorida)

    I’m attempting to update the timestamp in the theme, indeed. The Atahualpo theme has its own settings dashboard which gives options for text (or code) to include in kickers, bylines, and footers for each post… the setting under ‘bylines’ worked at first, and other parts of the byline (like the email reference, for example) update fine… the date, though, keeps displaying in g:i a format no matter what format I indicate. It appears to be overridden somewhere. The direct php code doesn’t work either. No matter what, the date displays in the format date(g:i a)… I have no idea what’s going on.

    Thanks for your suggestion, though.

    Thread Starter nikflorida

    (@nikflorida)

    okay, it was a stupid syntax error… I wasn’t including the date format parameters in single quotes. Oops, my bad.

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

The topic ‘date format won’t update’ is closed to new replies.