• Resolved abdelnaby

    (@abdelnaby)


    i have an issue that the date that appear in the serp is “uploadDate” for video. and if the date is old my artilce fall in position. so how to update all my “uploadDate” for all videos in schema.

    note that i updated the “uploadDate”manual.

    • This topic was modified 12 months ago by abdelnaby.

    The page I need help with: [log in to see the link]

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

    (@rankmathsupport)

    Hello @abdelnaby,

    Thank you for contacting Rank Math support.

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘uploaddate issue’ is closed to new replies.