Forums

[resolved] How do I set the date to appear with every post? (4 posts)

  1. barkins
    Member
    Posted 2 years ago #

    How do I setup my blog to have each post have the date, even if it's the same day from the first post of the day?

    Right now, just the date appears on the latest post of the day, the older posts of the day don't have the date. I want to make it, so that each post has the date.

    Thanks

  2. Safirul Alredha (zeo)
    Member
    Posted 2 years ago #

    Use the_time() instead of the_date()

    see: http://codex.wordpress.org/Template_Tags/the_time

  3. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    You need to edit the index.php and signle.php/page.php file of your theme and add the code the_date cade:

    <?php the_date( $format, $before, $after, $echo ); ?>

    Add the code where you want to display the date.

    Refer these articles:

    http://codex.wordpress.org/Template_Tags/the_date
    http://codex.wordpress.org/Formatting_Date_and_Time

    Thanks,

    Shane G.

  4. barkins
    Member
    Posted 2 years ago #

    Thanks Zeo. That worked like a charm.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags