ryanmccauley211 on "[Plugin: WP Video Lightbox] Use lightbox shortcode outside wordpress post?"

ساخت وبلاگ

ryanmccauley211
Member
Posted 2 days ago #

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/

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>

ryanmccauley211
Member
Posted 1 day ago #

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?

I don't understand the following.

I want to insert all the code in my html file and send it to a post

ryanmccauley211
Member
Posted 13 hours ago #

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"]
');?>

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

ryanmccauley211
Member
Posted 4 minutes ago #

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 188 تاريخ : يکشنبه 2 خرداد 1395 ساعت: 7:16