Title: Different coding on youtube
Last modified: August 31, 2016

---

# Different coding on youtube

 *  [MickeSeise](https://wordpress.org/support/users/mickeseise/)
 * (@mickeseise)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/)
 * When I get the embed code from youtube it’s not alike the on I see on this plugin,
   you show:
 *     ```
       [iframe src="http://www.youtube.com/embed/4qsGTXLnmKs" width="100%" height="500"]
       ```
   
 * But I get:
 * `<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/
   W7mNmiW9qts?rel=0" frameborder="0" allowfullscreen></iframe>`
 * And that don’t work.
 * [https://wordpress.org/plugins/iframe/](https://wordpress.org/plugins/iframe/)

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

 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232385)
 * Where did you get that code?
 * You should have something like this:
 * `<iframe width="560" height="315" src="https://www.youtube.com/embed/4qsGTXLnmKs"
   frameborder="0" allowfullscreen></iframe>`
 * And replace it with shortcode like this:
 * `iframe src="https://www.youtube.com/embed/4qsGTXLnmKs"]`
 *  Thread Starter [MickeSeise](https://wordpress.org/support/users/mickeseise/)
 * (@mickeseise)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232400)
 * Which code?
 * I saw the code on the plugin site look at my screenshot: [Screenshot](http://i.imgur.com/17zm1re.png)
 * It’s the [iframe] code that not working.
 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232415)
 * > Which code?
 * This is not the proper youtube link for embed video:
 * `src="https://www.youtube-nocookie.com/embed/W7mNmiW9qts?rel=0"`
 * Should be this one: `src="https://www.youtube.com/embed/W7mNmiW9qts"`
 * Does this shortcode work for you?
 * `[iframe src="https://www.youtube.com/embed/W7mNmiW9qts"]`
 *  Thread Starter [MickeSeise](https://wordpress.org/support/users/mickeseise/)
 * (@mickeseise)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232422)
 * That’s not the code I show in the post or don’t you see the whole code? It was:
   
   <iframe width=”560″ height=”315″src=”[https://www.youtube-nocookie.com/embed/W7mNmiW9qts?rel=0″frameborder=”0″allowfullscreen></iframe&gt](https://www.youtube-nocookie.com/embed/W7mNmiW9qts?rel=0″frameborder=”0″allowfullscreen></iframe&gt);
 *  Plugin Author [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * (@webvitaly)
 * [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232425)
 * I see your code very well.
    And your code is just html iframe tag. It will work
   without the plugin but can be stripped by WordPress sometime. And also your iframe
   has not proper youtube source url address. Its youtube-nocookie.com and should
   be youtube.com.
 * And the code I posted above with square brackets is the shortcode which will 
   be executed by iframe plugin.
 * Does this makes more sense now?

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

The topic ‘Different coding on youtube’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/iframe_99a44b.svg)
 * [iframe](https://wordpress.org/plugins/iframe/)
 * [Support Threads](https://wordpress.org/support/plugin/iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/iframe/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [webvitaly](https://wordpress.org/support/users/webvitaly/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/different-coding-on-youtube/#post-7232425)
 * Status: not resolved