WordPress.org

Ready to get started?Download WordPress

Forums

Adding time to "Published:" (3 posts)

  1. eliasgi
    Member
    Posted 5 years ago #

    Hi!

    So I'm wondering how I add the time when a post is published. I'm a newbie, indeed.

    <span class="date"><?php _e('Skrivet den', 'default'); ?> <?php the_time('d F Y') ?></span>

    I thought it could be something like ('d F Y' , 'G:i') but obviously not... hm?

    Help please!

    Thanks! :)

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    the_time('d F Y, G:I'); works fine.

  3. siggia
    Member
    Posted 5 years ago #

    Here's an excellent page with everything to do with PHP date() Function.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.