Title: Use lightbox shortcode outside wordpress post?
Last modified: August 31, 2016

---

# Use lightbox shortcode outside wordpress post?

 *  Resolved [ryanmccauley211](https://wordpress.org/support/users/ryanmccauley211/)
 * (@ryanmccauley211)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/)
 * Hi,
 * Is there a way to use the lightbox shortcode in an html file instead of using
   the shortcode in the wordpress post?
 * Thanks!
 * [https://wordpress.org/plugins/wp-video-lightbox/](https://wordpress.org/plugins/wp-video-lightbox/)

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

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7397858)
 * Hi, have a look at the sample below. Is this what you mean?
 * `<a title=”” href=”YouTube video URL here” rel=”wp-video-lightbox”><img src=”
   image URL here” alt=”” width=”160″ /></a>`
 *  Thread Starter [ryanmccauley211](https://wordpress.org/support/users/ryanmccauley211/)
 * (@ryanmccauley211)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7397922)
 * I tried that and it doesn’t seem to work. I want to insert all the code in my
   html file and send it to a post from there rather than type the lightbox shortcode
   into wordpress if that makes sense?
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7398017)
 * I don’t understand the following.
 * > I want to insert all the code in my html file and send it to a post
 *  Thread Starter [ryanmccauley211](https://wordpress.org/support/users/ryanmccauley211/)
 * (@ryanmccauley211)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7398035)
 * I got it working, sorry I should have said php file. I used this:
 *     ```
       <?php echo do_shortcode('[video_lightbox_youtube video_id="cITNwEkCsdQ" width="640" height="480" alt="alt text for the image" auto_thumb="1"]
       ');?>
       ```
   
 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7398043)
 * Hi, I am happy to hear that you got it working 🙂
 * Can you mark this support thread as resolved.
 * Thank you
 * PS Enjoy the plugin
 *  Thread Starter [ryanmccauley211](https://wordpress.org/support/users/ryanmccauley211/)
 * (@ryanmccauley211)
 * [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7398044)
 * Thanks!

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

The topic ‘Use lightbox shortcode outside wordpress post?’ is closed to new replies.

 * ![](https://ps.w.org/wp-video-lightbox/assets/icon-128x128.png?rev=981252)
 * [WP Video Lightbox](https://wordpress.org/plugins/wp-video-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-video-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-video-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-video-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-video-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-video-lightbox/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [ryanmccauley211](https://wordpress.org/support/users/ryanmccauley211/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/use-lightbox-shortcode-outside-wordpress-post/#post-7398044)
 * Status: resolved