Title: Issue with YouTube Embed code
Last modified: August 31, 2016

---

# Issue with YouTube Embed code

 *  [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/)
 * Hi,
    I was going into YouTube, generated code for Embed a YouTube video with 
   custom size and **option to show relative video disabled**.
 * When I past the embed code into Visual editor on the button video Embed code 
   the video is inserted but the link of the video seems miss the rel=0 attribute
   so video are published with relative video at the end.
 * I tried many time to paste again the code but this not solve.
    I must turn off
   visual editor and correct code here so it works so maybe is a new issue with 
   this plug in?
 * Can you check and fix if possible?
    Thanks.
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [10 years ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306750)
 * If I understand correctly:
    – You are using the “Incert/Edit video” button in
   TinyMCE to add the embed code that you copied from Youtube. (That opens a modal
   dialog with an area you can paste that code). – After pasting it there and clicking
   OK, the rel attribute is removed?
 * Can you paste the exact code you are trying to embed in a comment here (surrounded
   by backticks)? I get `<iframe width="560" height="315" src="https://www.youtube.
   com/embed/oNwOtvwbSt8" frameborder="0" allowfullscreen></iframe>` when copying
   embed code from Youtube. Not sure where that rel attribute should be and why 
   it has an seemingly invalid value of `0`.
 *  Thread Starter [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [10 years ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306751)
 * ‘<iframe width=”853″ height=”640″ src=”[https://www.youtube.com/embed/b7XnlhIDz1U?rel=0&#8243](https://www.youtube.com/embed/b7XnlhIDz1U?rel=0&#8243);
   frameborder=”0″ allowfullscreen></iframe>’
 * When you save the post the code change in:
 * ‘<iframe src=”//www.youtube.com/embed/b7XnlhIDz1U” width=”853″ height=”640″ frameborder
   =”0″ allowfullscreen=”allowfullscreen”></iframe></center><center><img class=”
   alignright size-full wp-image-37″ src=”[https://www.peopleinside.it/wpi15/wp-content/uploads/2014/01/MarcoBorla_piccola.png&#8221](https://www.peopleinside.it/wpi15/wp-content/uploads/2014/01/MarcoBorla_piccola.png&#8221);
   alt=”MarcoBorla_piccola” width=”160″ height=”126″ />’
 * so miss the ?rel=0
 * Yes the button is what you say. I AM using Italian version but is that one.
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [10 years ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306752)
 * Ah, I see what you mean now. It’s not attribute but a query arg with the same
   name as the HTML attribute 🙂
 * This also happens in the TinyMCE demo: [https://www.tinymce.com/docs/demo/basic-example/](https://www.tinymce.com/docs/demo/basic-example/),
   not caused by TinyMCE Advanced or WordPress. I would suggest to open a ticket
   for TinyMCE on GitHub: [https://github.com/tinymce/tinymce/issues](https://github.com/tinymce/tinymce/issues).
 *  Thread Starter [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [10 years ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306753)
 * Thank you, done: [https://github.com/tinymce/tinymce/issues/2910](https://github.com/tinymce/tinymce/issues/2910)
 *  Thread Starter [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [10 years ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306754)
 * I AM able to reproduce on the TinyMCE DEMO so Thanks. This issue should be resolved
   in TinyMCE
 *  Thread Starter [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306794)
 * Issue is not resolved on my site. If TinyMice have updated and fixed the issue
   should this plugin update? Why I continue to see issue is still present?
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306795)
 * The `media` plugin is actually part of WordPress. So when this is fixed upstream
   in TinyMCE, it will be updated in the next WordPress release.
 *  Thread Starter [peopleinside](https://wordpress.org/support/users/peopleinside/)
 * (@peopleinside)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306796)
 * UpStream? Media Plug In? Un sorry I don’t know of what we are talking… maybe 
   my knowledge about this is low.
 * Just see in the Demo of TinyMice the issue seems resolved and on TinyMice topic
   on GitHub has been resolved and closed but issue continue to be in my website.
 * Thank you.
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306797)
 * Sorry, meant to say that:
    – This has nothing to do with the TinyMCE Advanced
   plugin. – As it is resolved in TinyMCE (the demo on their site), it will be resolved
   in the next version of WordPress.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Issue with YouTube Embed code’ is closed to new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/issue-with-youtube-embed-code/#post-7306797)
 * Status: not resolved