• Resolved turtlegit

    (@turtlegit)


    The GSC issue for the video sitemap is different than the image sitemap.

    <video:content_loc> or <video:player_loc> is the same as <loc> value. These tags should contain links to the actual video, not the video’s html landing page.

    We’ve detected that the value of either your <video:content_loc> or <video:player_loc> tag is the same as your <loc> value. These tags should contain links to the actual video, not the video’s html landing page. Without the correct link, this video may not be considered in your submission. For <video:content_loc>, the link should point to raw video bytes. For <video:player_loc>, the link should point to a swf player and have the correct parameters to play the target video.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter turtlegit

    (@turtlegit)

    I ended up just deleting the video as the video wasn’t on a page and was an trailer for a movie.

    But the issue is still found on other sites I added this plugin too.

    I think the issue is video:place_loc needs to be the page where the video is located on. Possibly an issue is if there is no page for the video it fallbacks to the video link.

    • This reply was modified 1 year ago by turtlegit.
    Thread Starter turtlegit

    (@turtlegit)

    I attempted to fix this on my own. Added to the query in the while statement.

    $post_id = get_the_ID(); 

    $media_file_url = wp_get_attachment_url($post_id);

    $page_url = get_permalink($post_id);

    changed the echo here.

    echo '<loc>' . esc_url( $page_url ) . '</loc>';

    for this elseif added to ()

    $post_id

    gsc has no issues with it now

    • This reply was modified 1 year ago by turtlegit.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘GSC Video Sitemap Issue’ is closed to new replies.