• I have changed the date format to d/m/y (Options|Default date) but posts (old & new) still show like February 18th, 2005 although sample output on the options page is correct

Viewing 7 replies - 1 through 7 (of 7 total)
  • Tried a hard refresh ?
    I would have said what I see, but I can’t find your blog.

    Thread Starter andym

    (@andym)

    Sorry, but what is a hard refresh? Site at http://www.mabb.co.uk/twys/

    Hard refresh is hitting Ctrl+Shift+R (instead of Ctrl+R)

    I also get the “wrong” date.

    Could there be a different date format in the_date() below post’s entry? (hope you don’t mind me butting in, Podz)

    Thread Starter andym

    (@andym)

    Not quite sure what you mean Podz. Have deleted all posts and added one new – format still incorrect!

    If you mean me by “podz” I’ll reply 🙂

    Look at the php code in the main template (it’s quite at the beginning inside a div IDed “post”), there’s this bit of code (I see now that it’s the_time and not the_date… my bad):
    <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <small><?php the_time("F jS, Y") ?> <!-- by <?php the_author() ?> --></small>

    Unless you’ve changed it (Default theme), there’s that the_time that holds a date format so it overrides the one you’ve set in Options

    Thread Starter andym

    (@andym)

    Perfect – thanks for your help

    Oh, by the way. You’re going to have to remove the date format in the_time on other templates, too (archive, search…). If you want them all the like the default you set, that is.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Date format changes not taking effect’ is closed to new replies.