Title: Shortcode doesn&#8217;t work
Last modified: February 18, 2026

---

# Shortcode doesn’t work

 *  Resolved [Selah](https://wordpress.org/support/users/tubescreamer/)
 * (@tubescreamer)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/shortcode-doesnt-work-101/)
 * Hello. Is there any reason this shortcode won’t work?
   [device-wrapper src=”[https://www.youtube.com/watch?v=FW0VdAYF8ro&#8221](https://www.youtube.com/watch?v=FW0VdAYF8ro&#8221);
   media_type=”video” autoplay=”1″ autoplay_on_view=”1″]
 * I am trying to test playing any video from youtube or vimeo and all it displays
   instead is the phone mockup with the text “iphone_14_pro_v2”. No video is displayed.
   Is there something I am missing, or is the plugin not working?

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

 *  Plugin Author [Bogdan Bendziukov](https://wordpress.org/support/users/barb0ss/)
 * (@barb0ss)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/shortcode-doesnt-work-101/#post-18826304)
 * Hello [@tubescreamer](https://wordpress.org/support/users/tubescreamer/),
 * To use a YouTube video as a source, you need to provide `media_type="iframe"`
   and update your video’s URL to look like this: [https://www.youtube.com/embed/YOUR_VIDEO_ID](https://www.youtube.com/embed/YOUR_VIDEO_ID)
 * Also please note, that autoplay option is valid only for video media types, not
   for embedding videos like YouTube or Vimeo. I’ll probably add that feature in
   the next release though.
 * So to sum up, the correct shortcode for your YouTube video will be like this:
 * `[device-wrapper src="https://www.youtube.com/embed/FW0VdAYF8ro" media_type="
   iframe"]`
 *  Thread Starter [Selah](https://wordpress.org/support/users/tubescreamer/)
 * (@tubescreamer)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/shortcode-doesnt-work-101/#post-18826314)
 * Ah okay I get it. Thanks! So i’m assuming for Vimeo videos, media_type=”iframe”
   is to be used as well?
 *  Plugin Author [Bogdan Bendziukov](https://wordpress.org/support/users/barb0ss/)
 * (@barb0ss)
 * [3 months, 2 weeks ago](https://wordpress.org/support/topic/shortcode-doesnt-work-101/#post-18826402)
 * Correct!

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-doesnt-work-101%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/device-wrapper/assets/icon.svg?rev=2904021)
 * [Device Wrapper](https://wordpress.org/plugins/device-wrapper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/device-wrapper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/device-wrapper/)
 * [Active Topics](https://wordpress.org/support/plugin/device-wrapper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/device-wrapper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/device-wrapper/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Bogdan Bendziukov](https://wordpress.org/support/users/barb0ss/)
 * Last activity: [3 months, 2 weeks ago](https://wordpress.org/support/topic/shortcode-doesnt-work-101/#post-18826402)
 * Status: resolved