• Resolved didixon

    (@didixon)


    Hi everyone! I just need some help regarding with my posts. All of it were published this March 2017 except for the latest article that i was doing. My internet connection was unstable while saving the last post and suddenly all of the previous posts changed to April on my homepage. But when you click the article it shows the real date that it was published. I tried editing the dates but nothing is happening. I also tried deleting cache and cookies. Could it be the WP Super cache plug in?

    I’m using Nature one theme and this is my blog http://www.healthyshadesofgreen.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Could it be the WP Super cache plug in?

    – Flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. If your host provider has a “Purge Varnish” option or if you can ask your provider to flush memcache on your server. If you are using SiteLock, manage your caching there.
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – switching to the unedited default Theme (Twenty Sixteen.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins).
    resetting the plugin folder by FTP/ SFTP

    in index.php of your theme (https://en-ca.ww.wp.xz.cn/themes/nature-one/ – which does not seem to be supported anymore), this line (about 10 lines from the end of the file) is wrong:

    <div class="blog-meta"><?php echo get_the_time('j'); ?><br /><?php echo date('M'); ?></div><!-- blog-meta -->

    the reason is that date('M') http://php.net/manual/en/function.date.php always outputs the current month, not the month of the post date.

    the line should be:

    <div class="blog-meta"><?php echo get_the_time('j'); ?><br /><?php echo get_the_time('M'); ?></div><!-- blog-meta -->

    Thread Starter didixon

    (@didixon)

    Hi @alchymyth

    It works! I Just have to check it carefully if i’m editing the right line because the last time i did it, I messed up! i couldn’t access my dashboard. Had to call my web host lol Thank you very much! I really appreciate it. 🙂

    • This reply was modified 9 years, 2 months ago by didixon.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘All the previous posts changed to future date’ is closed to new replies.