[Resolved] Google is not indexing the last updated date.

Home Forums Support [Resolved] Google is not indexing the last updated date.

Home Forums Support Google is not indexing the last updated date.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #557613
    David

    Hello
    Google is showing the published date & not indexing the last updated date. I changed heading to test it. Yes. Heading changed within 1 day & meta description also changed, but not last updated date.
    My CSS file is here

    .posted-on .updated {
        display: inline-block;
    }
    .posted-on .published {
        display: none;
    }
    
    .posted-on .updated:before {
        content: "Last updated: ";
    }
    .post-navigation {
        display: none;
    }

    Can you help me how to get index the last updated date?
    Thank you.

    GeneratePress 2.0.2
    GP Premium 1.6.2
    #557622
    David

    I added the following code to my child theme function.php

    function wpb_last_updated_date( $content ) {
    $u_time = get_the_time('U'); 
    $u_modified_time = get_the_modified_time('U'); 
    if ($u_modified_time >= $u_time + 86400) { 
    $updated_date = get_the_modified_time('F jS, Y');
    $updated_time = get_the_modified_time('h:i a'); 
    $custom_content .= '<p class="last-updated">Last updated on '. $updated_date . ' at '. $updated_time .'</p>';  
    } 
     
        $custom_content .= $content;
        return $custom_content;
    }
    add_filter( 'the_content', 'wpb_last_updated_date' );

    But not worked.
    Then I installed “Post updated date” plugin. But not worked.

    #558133
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try using GP 2.1 (currently being tested): https://github.com/tomusborne/generatepress/issues/63

    Check out the “Easier Updated Date” section.

    #558897
    David

    I just relaxed after reading the reply.
    but How many days we need to wait for the 2.1 version?
    Thank you.

    #559253
    Tom
    Lead Developer
    Lead Developer

    We’re hoping to get it released tomorrow. However, you can install it right now by following the instructions on the page I linked to 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.