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

    (@kylegilman)

    Videos are attached to a post automatically when you upload them using the “Add Media” button. If you want to use videos that are not attached to the post, you have to find their ID and enter them in a list like this [KGVID gallery=”true” gallery_include=”1245,1248,2034,2123″][/KGVID]

    If you’re trying to make a gallery out of videos that aren’t hosted on your website, you’ll need a different plugin.

    Thread Starter FastSnatch

    (@fastsnatch)

    Hey,

    Thanks for the quick reply.
    When I attach some videos, and use [KGVID gallery=”true”][/KGVID] short code, only the attached videos are displayed, not the gallery.

    Here is my full code:

    [KGVID gallery="true"][/KGVID]
    
    [KGVID poster="https://kangarooprod.clicandco.com/2/wp-content/uploads/2013/05/photo-nathalie-moussie.jpg" width="640" height="360"]https://kangarooprod.clicandco.com/2/wp-content/uploads/2013/05/moi1.flv[/KGVID][KGVID poster="https://kangarooprod.clicandco.com/2/wp-content/uploads/2013/05/photo-emmanuel-moussie.jpg" width="640" height="360"]https://kangarooprod.clicandco.com/2/wp-content/uploads/2013/05/video-accueil.mp4[/KGVID]
    Thread Starter FastSnatch

    (@fastsnatch)

    Plugin Author Kyle Gilman

    (@kylegilman)

    In WordPress terms, “attached” means a media file that is associated with a post. What you’re doing in the second line with [KGVID poster="https:// etc is “embedding” a single video. That isn’t necessary to create a gallery and in some cases could mess up gallery playback.

    The gallery="true" attribute checks for videos that are attached to the post through the WordPress database. Go to your Media Library (wp-admin/upload.php) and take a look at those two videos. See what the “Uploaded to” column says. If it’s not “uploaded to” the page “Nos Réalisations” then the gallery code has no way of knowing which videos to make a gallery out of.

    Thread Starter FastSnatch

    (@fastsnatch)

    Yes!!!!!!!! It works!!! I didn’t understand what “attached” means and now, thanks to you, it’s OK! Big thanks for you!

    Regards,
    Thomas.

    Thread Starter FastSnatch

    (@fastsnatch)

    Just for info:

    For HTML 5 standards, in plug-in code : <img src="'.$thumbnail_url.'" alt="" /> instead of <img src="'.$thumbnail_url.'">

    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help for gallery needed’ is closed to new replies.