WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] the_time and get_the_date won't repeat (3 posts)

  1. Lars Eighner
    Member
    Posted 1 year ago #

    The codex says the_date() will not return anything after the first occurrence of posts with the same date. It says to use the_time() or get_the_date() if the date is wanted on every post. But that does not seem to work. the_time('d-M-y') seems to work exactly like the_date() - it will return the first of similar dates, but does not return anything for duplicated dates.

    Do I have to have a new query for every single post?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but that's simply not true. I use the_time() in all of my themes (50+ in total & counting) and it has never yet failed to display the date/time on every single post.

  3. Lars Eighner
    Member
    Posted 1 year ago #

    Damn! It was a stray umbilical Template: to a once-parent.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags