• Hi all,

    sorry for the maybe dump questions but I couldn’t find a solution via the search. I’m using wordpress 4.2.1 together with theme twenty fifteen 1.1. Currently I only see the date below posts, but not the time. How can I change that? I would like to see the date and time.

    Many thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having the same issue.

    I happen to find a fix at the attached link for the missing updated missing author error coming up in webmaster tools.
    http://www.drafie-design.nl/correct-hatom-errors-in-google-webmaster-tools/

    I added the below code to my functions.php and it worked. Make sure not to copy and paste anywhere within other code under the editor otherwise you will get an error. I’m hoping when webmaster tools updates this will be the permanent fix. It did show as being fix when I did a live test of it.

    function hatom_mod_post_content ($content) {
    if ( in_the_loop() && !is_page() ) {
    $content = ‘<span class=”entry-content”>’.$content.'</span>’;
    }
    return $content;
    }
    add_filter( ‘the_content’, ‘hatom_mod_post_content’);

    //add hatom data
    function add_suf_hatom_data($content) {
    $t = get_the_modified_time(‘F jS, Y’);
    $author = get_the_author();
    $title = get_the_title();
    if (is_home() || is_singular() || is_archive() ) {
    $content .= ‘<div class=”hatom-extra” style=”display:none;visibility:hidden;”><span class=”entry-title”>’.$title.'</span> was last modified: <span class=”updated”> ‘.$t.'</span> by <span class=”author vcard”><span class=”fn”>’.$author.'</span></span></div>’;
    }
    return $content;
    }
    add_filter(‘the_content’, ‘add_suf_hatom_data’);

    This only fixes it on the main landing page. You will still have missing author missing updated for the other pages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show TIME and date of posts?’ is closed to new replies.