• Hello on my blog http://www.usmansworld.com right under ever blog post it says, ” Filed Under (Category Here) by Usman on 09-05-2007.”

    How do I change the timestamp to say it something like this, “Filed Under (Category Here) by Usman on May 9th, 2007 ?”

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Depends on your theme and your templates. Check whatever post template you are using, and see if there is either some php code or a template tag for the date and time. Either one can be modified, once you identify the source of it.

    These might be helpful to you:

    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Template_Tags
    http://codex.wordpress.org/Template_Hierarchy

    Thread Starter ratman2050

    (@ratman2050)

    Ok. When I went to Presentation –> Theme Editor –> Single Post.php It showed me the code whee it says Filed Under ___ on ____.

    So at first the code was <?php comment_date(‘m-d-Y’) ?> so I changed it to <?php comment_date(‘F jS, Y’) ?> but it had no affect!!?!??!

    Is there something wrong that I don’t see?

    First off, be absolutely certain that the post or page in question is indeed using the single.php template. (I usually test it by putting a X in the template, then go load the page and see if the X shows up. :))

    Next, see how you have set the time and date to display in Admin. That is the default, and setting the parameters should override it….but you might coax it to cooperate by altering your display settings in admin.

    If I think of anything else I will let you know. 🙂

    Thread Starter ratman2050

    (@ratman2050)

    Ok I tested that X thing and nothing showed up so now what?

    In my admin panel it shows it as May 11, 2007

    If you don’t see the X then you are most likely editing the wrong template. 🙂

    Read up on the template hierarchy here:
    http://codex.wordpress.org/Template_Hierarchy

    Keep testing templates (with the X) until you figure out which template is generating the date you don’t like….once you figure that out you can make the changes and it should work.

    Thread Starter ratman2050

    (@ratman2050)

    Ok I found it. It was actually in the index.php file thanks.

    Great, glad you got it worked out. 🙂

    I have also had a date issue recently, and learned that WordPress’s functions the_date() and the_time() both display the date and time of publishing for the current post or page. If you want a date that is based on real-life, as in the current year month and date, use date(), which is a php function, not a WordPress function. This resolved an issue I had with some pages of my site saying it’s 2006, and others saying it’s 2007. 🙂

    And just for the record, in case someone else stumbles on this thread someday….another option I have used instead of the X to identify templates, is to just type the name of the template right at the top, below the commented-out portion. That way, when you bring up the page or post of your blog, you know right away what template it is using. This can be really useful for troubleshooting templates.

    HTH 🙂

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

The topic ‘Changing time stamp for posts?’ is closed to new replies.