Forums

How to show time (not just date) on your blog posts? (6 posts)

  1. SUNBO
    Member
    Posted 3 years ago #

    As what title said. If it helps, I'm using the japan-style theme, it seems it doesn't show time on posts by default. Most themes I browsed also only show the date and not time.

    I'm just wondering how I can enable the time of post on my blog. I've searched google/yahoo-answers before this with no luck.

    Any help appreciated.

  2. whooami
    Member
    Posted 3 years ago #

    I've searched google/yahoo-answers before this with no luck.

    http://wordpress.org/search/show+the+time?forums=1

    start @ the 3rd thread.

  3. SUNBO
    Member
    Posted 3 years ago #

    thanks whooami, i obviously didn't notice the search feature on the main page... i was looking for it inside the forum itself...

    I solved my problem after going through 10+ topics... For those of you who landed on this page with the same problem, this is how I fixed it.

    Put this code <?php the_time('g:i a'); ?> next to <?php the_time('F j, Y'); ?> (or similar) in index.php of your theme's folder. In the same folder, do the same similarly for single.php, archives.php, archive.php, and search.php.

    Resources:
    http://codex.wordpress.org/Template_Tags/the_time
    http://codex.wordpress.org/Formatting_Date_and_Time
    http://codex.wordpress.org/The_Loop

  4. taruntanu
    Member
    Posted 3 years ago #

    Hey thanks Sunbo ...it worked for my site http://www.telecomtalk.info

  5. designmary
    Member
    Posted 2 years ago #

    Sunbo, thanks so much! That saved me some time.

  6. cc4789
    Member
    Posted 2 years ago #

    i was wondering if someone could help me with this as I am completely a novice.

    this is the code i have in my index.php for the date:

    <div class="date"><span><?php the_time('Y') ?></span> <?php the_time(__ ('F j', 'vigilance')) ?></div>

    If I want it to display as Day Month Year Time, what code do I enter and where do I put it? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic