WordPress.org

Ready to get started?Download WordPress

Forums

SublimeVideo - HTML5 Video Player
[resolved] How can I use the shortcode outside the wordpress loop? (2 posts)

  1. malagebidi
    Member
    Posted 1 year ago #

    [sublimevideo] shortcode only works in post, but I want place my video in my slideshow or anywhere outside the post.

    http://wordpress.org/extend/plugins/sublimevideo-official/

  2. klweddings
    Member
    Posted 1 year ago #

    The easiest way is to have the plugin installed and call the shortcode using php:

    <?php echo do_shortcode('[sublimevideo poster="http://YOUR-PIC.JPG" src1="http://YOUR-VIDEO.mp4" src2="http://YOUR-VIDEO.webm" width="123" height="123" title="YOUR-TITLE" uid="YOUR-UID"]'); ?>

    You can use any shortcode outside the loop (i.e. in a template) this way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.