Forums

[resolved] Date and Time not appearing for SOME posts (5 posts)

  1. pidoof
    Member
    Posted 1 year ago #

    On my site (chibird.com) for some of the posts, the date and time is not visible. For others, it is. Is there something wrong? I can't seem to figure out how to fix it. Thank you!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    check the codex: the_date() vs. the_time()

    and then edit your template and see if it uses 'the_date()' - change it to the_time()

  3. pidoof
    Member
    Posted 1 year ago #

    i'm sorry, I'm not quite sure how to do that. ><

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    http://codex.wordpress.org/Function_Reference/the_date
    http://codex.wordpress.org/Template_Tags/the_time

    for instance, the_date() only shows the date if it is different from the one before.
    with other words - if two posts are from the ssame date, it wil only show for the first post.

    edit your template files (index.php, single.php, etc.) and see if the code which shows the date and time, is either the_date() or the_time('')
    (maybe with some parameters in the brackets).

  5. pidoof
    Member
    Posted 1 year ago #

    Thank you soooo much!!! No wonder- I couldn't figure out what was wrong. I finally changed the 'date' in the default to the 'time'. Thank you, you have no idea how many hours I could've wasted with this. XD;;

Topic Closed

This topic has been closed to new replies.

About this Topic