• Resolved questionmarc

    (@questionmarc)


    hi.

    i hate to use the word ‘urgent’ but this is urgent ??

    I have a shortcode, for example:

    [KGVID width=”720″ height=”405″]https://myurl.com/path/video.mp4[/KGVID]

    This works. Nicely embedded video. But now, my client wants to show this video in a lightbox. How can i put the above code in a lightbox? I am unable to find a lightbox or other solution for my problem. When i strictly embed the video url in a lightbox then it works, on some machines, depending if the have quicktime of media player installed. That’s why i need to post the above shortcode so that the plugin can handle the streaming part instead of hoping that a system can handle .mp4 files.

    Please help!

    https://www.ads-software.com/extend/plugins/video-embed-thumbnail-generator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    Try making a single-video gallery. The shortcode would be like this:

    [KGVID gallery="true" gallery_include="123" gallery_thumb="720"][/KGVID]

    Where “123” is the ID of the video attachment. This will only work if your video is in the WordPress Media Library.

    Thread Starter questionmarc

    (@questionmarc)

    thank you. I’ve tried it, but doesn’t seem to work?

    For me:

    [KGVID gallery=”true” gallery_include=”9291″][/KGVID]

    Where 9291 is the post ID of the video in my library. When i put the code in my page, it doesn’t show up.

    Plugin Author Kyle Gilman

    (@kylegilman)

    Is the video with the ID 9291 a child of the post you’ve embedded it in? If you go to the Media Library page, does the video have the name of the post in the “Uploaded To” column? If it’s the only video that is a child of that post, you could omit the gallery_include attribute and just do

    [KGVID gallery="true" gallery_thumb="720"][/KGVID]

    Also, it can be difficult to get the correct ID for media posts. WordPress is making it harder and harder to find. The best way I know of is to go to the Media Library page and click on the video title. You’ll get to a URL like https://www.your-site.com/wp-admin/post.php?post=2571&action=edit

    The number after “post=” is the ID of the video.

    Thread Starter questionmarc

    (@questionmarc)

    Thank you for the quick support. To be honest, i don’t know what happened but it works now. your advice was perfect. Thx!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode in ligthbox?’ is closed to new replies.