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

    (@rankmathsupport)

    Hello @eber219,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Can you please confirm if you are using our autodetection of embedded video to generate your video schema? If you are, then Rank Math should be able to pull the correct upload date and we can confirm that your video is 11 years old and Google is using that information.

    In this case, you can update the uploadDate in our schema editor. You can’t remove that property because Google requires that to make sure that your schema is validated.

    Looking forward to helping you

    Thread Starter eber219

    (@eber219)

    Hello,

    No, what I am saying is that Google is showing the date from the video (uploaded date) as the date of the page (date the page was last updated), on the search results.

    And that is wrong. The video date is 2012, and the page was last updated on 2023.

    That is why I want to remove the “video uploaded date” from schema, on my site.

    Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @eber219,

    You will have to update the uploadDate in the Video Schema manually by editing each post. You can also leave the uploadDate field empty and it will automatically take the post’s published date as the uploadDate. If you want to do it in bulk, you can use the following filter to set the last modified date of the post as the uploadDate:

    add_filter( "rank_math/snippet/rich_snippet_videoobject_entity", function( $entity ) {$entity['uploadDate'] = get_the_modified_date($format='c');return $entity;});

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter eber219

    (@eber219)

    Thanks!

    I have entered the code provided on the child theme functions.php file.

    After that I deleted the W3 Total Cache files, but the 2012 uploaded date is still on the page’s source code.

    I even updated the post to see if it made a difference, but no.

    Do you know if there is something missing that I am not seeing?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google confusing last updated date and date from Youtube video’ is closed to new replies.