• All,

    After several searches on WP.org and google, i’m coming up short.

    I recently started my first blog and put up a few posts earlier today. The problem is that all of the posts I made show the wrong date for when they were posted.

    The posts were made on 10/25/2010 but they all display 10/10/2010 as the posted date. Within the Admin section, the published date for each of these posts are correct. I have tried setting the publish date again but no change.

    These posts were set to publish immediately, not as a future publish date. I saw several articles where people said this was an issue.

    Where should i be looking?

    https://www.startupingredients.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Check the template that is displaying those posts (e.g. your theme’s index.php) and see how the_time() is being used.

    Related:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

    Thread Starter rightfoot

    (@rightfoot)

    So i found a where my theme uses ‘the_time’ and it doesn’t look that simple. Here’s what the code looks like:

    <?php the_time(get_option(‘theme_date_format’)) ?>

    I’ve looked through all the php and css files and cannot find ‘theme_date_format’ anywhere. I have posted a question on the forums where i got the theme, but no response yet.

    A little more odd information:
    1. The posts say they were all posted on 10-10, but they say different actual days(Monday, Tuesday, Wednesday…). All of these posts were made on the same day within 5 minutes of each other.

    2. I checked the DB for the posts and they all say the correct post date within the DB of 10-25.

    Hope you this helps, really need to get this fixed.

    Thread Starter rightfoot

    (@rightfoot)

    digging a little deeper

    1. The theme_date_format is a line within the DB contained in the WP_Options table for my site. It has the value of l F n, Y which is what i want.

    2. I replaced the ‘the_time()’ code to just say “the_time(‘l F n, Y’). This had no change on my site.

    3. I change ‘the_time()’ code again to say “the_time(‘F n, Y’) and it dropped the day from the post. However the date is still displayed incorrectly. So the site is pulling the correct format of the date, just not the correct information.

    Where should i look now?

    Please paste all the code from the theme template file (probably index.php) that is displaying those posts into a pastebin such as wordpress.pastebin.com, and report the link back here. Maybe someone can spot your problem. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posted Date is wrong, doesn't match published date’ is closed to new replies.