WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Only the first post from a day displays the date (3 posts)

  1. PGrizz
    Member
    Posted 3 years ago #

    I remember this problem years ago when I first started using WordPress. It's been so long, that I can't remember exactly how to fix it. Sorry, I also tried searching, but for some reason couldn't find an answer. I remember it being a matter of changing one little thing.

    Right now I'm using <?php the_date(); ?> what do I need to switch it to so that it still displays the day, but allows the date to show up for multiple posts from the same day?

  2. vtxyzzy
    Member
    Posted 3 years ago #

    Switch to the_time(). See the 'Special Note' here in the Codex.

  3. PGrizz
    Member
    Posted 3 years ago #

    thanks, i tried switching to the_time before and it would display the time instead of the date. it looks like based on the link you shared that since wp 3.0 you now have to insert <?php the_time(get_option('date_format')); ?> in order to fix this problem. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags