• Resolved zyntsz

    (@zyntsz)


    I want to display the last updated date instead of the published date in the search engines. Is there any way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @zyntsz,

    Thank you for contacting Rank Math support.

    Rank Math already adds the dateModified property in the Schema to inform the search engines of the last modification date. However, the date displayed in the SERPs is mostly taken from the one visible in the front end of the post. So you will have to make sure that the date displayed on your posts in the last modified date, not the published date.

    Here’s a link for more information:
    https://rankmath.com/kb/remove-dates-from-search/#how-google-find-date

    Hope that helps.

    Thread Starter zyntsz

    (@zyntsz)

    I have hidden the published date available in the theme and instead added this code after the one which is responsible for the published date in content-single.php. Is modified date still displayed?

    $u_time = get_the_time('U'); 
    $u_modified_time = get_the_modified_time('U'); 
    if ($u_modified_time >= $u_time + 86400) { 
    echo "<p>Last modified on "; 
    the_modified_time('F jS, Y'); 
    echo " at "; 
    the_modified_time(); 
    echo "</p> "; } 
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @zyntsz,

    To edit the theme files and make sure that everything is correctly set up, it’s always best to get in touch with the theme provider first.

    They will be able to assist you better in making those sorts of changes in your theme.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display last updated date in google meta tag’ is closed to new replies.