• Hello,

    Usually i ‘m using iframe source for embedding youtube (or other sources) videos
    for example

    <iframe width=’560′ height=’315′ src=’https://www.youtube.com/embed/xxxxxx&#8217; frameborder=’0′ allowfullscreen></iframe>

    The code till now didn’t change and i hadn’t any problems.

    The past 3 days i’ve realized that videos are not being displayed
    check the code and i saw that was converted to something like
    [youtube https://www.youtube.com/watch?v=xxxxxxxx%5D

    but the videos are not displayed at the preview mode or when published ??

    Can you please assist? WordPress version 4.7.5

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Try just pasting the URL of the video itself on its own line, no iframe or shortcode, as detailed at https://codex.www.ads-software.com/Embeds

    Thread Starter stelaras1

    (@stelaras1)

    Hi James and thanks for your prompt response.

    It’s working when pasting the url itself ??

    i wonder how the iframe code is converted to [youtube url…] short codes
    is it something that is being done automatically? i think not cause i’ve checked my previous posts.
    I have to find what causes this automatic conversion, if you have an idea please share with me.

    Additionally i have to find and change all the iframe source or [youtube url xxx] short codes to just only the video url.
    If someone knows how to achieve this automatically please tell me, it would be very much appreciated.

    Thanks

    Moderator James Huff

    (@macmanx)

    The iframe should work on its own too.

    I’m not sure what’s converting them to broken shortcodes though, perhaps a plugin is doing that? It’s definitely not WordPress.

    As for converting them to what they should be, I’m not sure of any way to do that properly besides just manually editing each instance.

    Thread Starter stelaras1

    (@stelaras1)

    James thank you once more ??

    i’ll try to find out what is causing the conversion and disable it.
    i think it’s somewhere within wp-includes/class-wp-embed.php

    have a nice day!

    Moderator James Huff

    (@macmanx)

    It’s not in the core file, nothing in WordPress converts to that shortcode. It would either be a plugin or theme function.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘youtube short code does not work’ is closed to new replies.