Support » Fixing WordPress » Dates missing on posts and in post editor

  • Hi friends,

    Forgive me if this issue has been covered before. I have tried searching, to no avail.

    I noticed yesterday on my blog that dates are missing from posts, where it says “Posted on _______” … it’s empty. Also, in editing posts and pages, the date is missing there too, where it says “Last edited by me on _______”

    Any suggestions on how this might be fixed? I tried deactivating plugins, and everything is up to date. Using WP 3.5.2 with most-up-to-date version of Twenty Eleven theme.

    Thanks so much for your help!

Viewing 15 replies - 1 through 15 (of 17 total)
  • Could you post a link to your site?

    Thread Starter trevorjay

    (@trevorjay)

    Hi graphical_force, thanks so much for your reply. The site is http://agility3r.com/blog/

    So when you disable all plugins, it has no effect? Right now you have some plugins enabled.

    Thread Starter trevorjay

    (@trevorjay)

    Yes, the only plugins installed are Captcha, Hello Dolly, and Shareaholic. I just now deactivated all three and no effect.

    Did you do or have any custom coding done?

    Thread Starter trevorjay

    (@trevorjay)

    Nope, the files are all original. That’s what’s weird, that it changed in the middle of the day yesterday, out of nowhere. I did update wordpress and the theme files in the morning, and perhaps it happened then and I didn’t notice until later.

    Can you replicate the problem using the default Twenty Twelve theme with all plugins deactivated?

    Thread Starter trevorjay

    (@trevorjay)

    Hi esmi, Yes I just switched to the Twenty Twelve theme with ALL plugins deactivated and the dates are still missing.

    It’s not outputting the timestamp at all when inspecting with dev tools. Can you confirm that they are set?

    Thread Starter trevorjay

    (@trevorjay)

    What do you mean, confirm that they are set?

    Sorry, I got two support questions mixed up. LOL. It does not appear that they are being outputted. It may be an issue with Twenty Twelve. You can post the code that displays the timestamp to see what the issue may be.

    Thread Starter trevorjay

    (@trevorjay)

    Haha no problem! 🙂

    I tried Twenty Ten, Twenty Eleven, and Twenty Twelve. No luck!

    Is this the code you’re referring to?

    function twentyeleven_posted_on() {
    	printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
    		get_the_author()
    	);
    }
    endif;

    I found that in Theme Functions (functions.php)

    The date isn’t showing up in the backend either, when editing posts.

    Thanks so much for your help!

    I just disabled all plugins on a test site and activated Twenty Eleven and I have no issues with it. Could you try to reinstall?

    Thread Starter trevorjay

    (@trevorjay)

    I’d rather not do that.. wouldn’t I lose all changes and posts? Do you think this could be some server-side issue with PHP?

    Thanks!

    Well, it could be php but most likely there is something else going on. Without reinstalling how do you know that you do not have a corrupt file?

    You could export the xml file then import it again along with the images.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Dates missing on posts and in post editor’ is closed to new replies.