• Hello
    I searched in other topics, but I could not solve the current problem in Google update
    `Google has recently developed the ability to index video separately.
    In this bit, our sites received the error of not indexing the video
    When I checked, I saw that most of our videos are from 200 to maybe 3 without delay
    And the problem is that the address of the video, for example, if it is ”
    https://famaserver.com/wp-content/uploads/2021/09/update%20frimware%20ilo.mp4?_=1

    At the end of it, a string ?_=1 is inserted, and for this reason, Google considers this video invalid.

    My question is, what changes do I need on the page below, where I re-insert the link, so that the exact address of the video is inserted and to prevent the extra string from being added to the end of the video.
    The address of one of the pages where there is a video and of course the mentioned problem is also there:

    https://famaserver.com/?p=1822

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can’t reproduce this on my end. However, the source code of your video embedding looks a bit different. What do you use to edit the page and how exactly did you insert the video there? I opened the Gutenberg editor and inserted a video block – done.

    Thread Starter famaserver

    (@elvator)

    From the classic editor

    And I put the videos in the content through media insertion as direct upload and upload from another link.

    Found it. The reason is how WordPress compiles the resulting HTML code from the shortcode used in the Classic Editor. Here: https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/media.php#L3274 – the parameter “_=1” is added.

    You could change this with a filter that comes afterwards. If you insert the following in your child theme or via the Code Snippet plugin in your project, the parameter disappears:

    function add_wp_video_shortcode( $output ) {
        return str_replace( '?_=1', '', $output);
    }
    add_filter( 'wp_video_shortcode', 'add_wp_video_shortcode', 10, 1);

    Or you can use Gutenberg for your content in the future, where this won’t happen at all.

    If you want to change this, you can try the core team: https://core.trac.www.ads-software.com/newticket

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with video index in Google’ is closed to new replies.