• sychosly

    (@sychosly)


    When I look at the posts, it just shows the day they were posted. How can I make it so that it has something like this:

    TITLE OF POST
    May 30th, 2005 @ 1:55 AM.

    I am using the default theme.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • jinsan

    (@jinsan)

    you need to edit your index.php file – back up the file first then place the following where you need to:

    <?php the_date(); ?> and <?php the_time(); ?>

    in the index.php file – I expect you want to place it after your
    <?php the_title(); ?>.

    I’d also suggesting using a h2 tag with a class for either item. Though you’re using Kubrick aren’t you? There’s a tonne of themes available that add little things like this for you btw.

    functionjunkie

    (@functionjunkie)

    SychoSly,

    Don’t know if you have donethis already, but you might want to check out the truly awesome WP Wiki at http://codex.ww.wp.xz.cn.

    Stuff like dates, times, and pretty much everything else about WP is on that site. I highly recommend it.

    Justin

    viper007bond

    (@viper007bond)

    http://codex.ww.wp.xz.cn/Template_Tags

    As for “May 30th, 2005 @ 1:55 AM”, that’d be this:

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

    Thread Starter sychosly

    (@sychosly)

    Thanks guys.

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

The topic ‘Adding the time to the date’ is closed to new replies.