Title: youtube shortcode issues
Last modified: November 5, 2017

---

# youtube shortcode issues

 *  [Lluis](https://wordpress.org/support/users/lluis-abello/)
 * (@lluis-abello)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/)
 * Hello,
    I’ve been having some issues embedding youtube videos with shortcodes
   using your plugin. Also unable to get the ‘&rel=0’ to disable related videos 
   to work. I suspect ‘&rel=0’ is part of the problem.
 * A short url like `[youtube https://youtu.be/idididid&rel=0]` does not work in
   AMP. The ‘&rel=0’ at the end seems to confuse the parsing of the video id and
   the plugin generates a wrong video id and no video is shown in the AMP page
    `
   <amp-youtube data-videoid="wrongid" layout="responsive" width="1000" height="
   563"></amp-youtube>`
 * removing ‘&rel=0’ in the shortcode fixes the problem but then you get related
   videos both in your regular and in your AMP pages.
 * Using full url format in the shortcode like this:
    `[youtube https://www.youtube.
   com/watch?v=idididid&rel=0]` Works, however the generated AMP page is missing
   the data-param-rel=”0″
 * Thanks in advance!

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/#post-9654355)
 * Hi [@lluis-abello](https://wordpress.org/support/users/lluis-abello/)
 * Which plugin are you using?
 * Also, when you use the same shortcode with &rel=0, then does it work in the non-
   AMP version?
 *  Thread Starter [Lluis](https://wordpress.org/support/users/lluis-abello/)
 * (@lluis-abello)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/#post-9656995)
 * Hi,
    Using this: AMP for WP – Accelerated Mobile Pages for WordPress Version 
   0.9.66.1 | By Ahmed Kaludi, Mohammed Kaludi
 * And yes the shortcode with &rel=0 works in the non-AMP version
 * Thanks!
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/#post-9658744)
 * [@lluis-abello](https://wordpress.org/support/users/lluis-abello/)
 * Sure, Thanks for letting me know. I have created a ticket for this: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1378](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1378)
 * We will fix this in the upcoming updates.
 *  [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * (@marqas)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/#post-9701040)
 * Hi [@lluis-abello](https://wordpress.org/support/users/lluis-abello/),
 * This issue has been resolved and added in our update which we are going to release
   within a day.
 * Please test the result after the update and let us know.
    ref: [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1378](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1378)

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

The topic ‘youtube shortcode issues’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Mohammed Razzaq](https://wordpress.org/support/users/marqas/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/youtube-shortcode-issues/#post-9701040)
 * Status: not resolved