WordPress.org

Support

Support » Plugins and Hacks » SublimeVideo - HTML5 Video Player » [Resolved] How can I use the shortcode outside the wordpress loop?

[Resolved] How can I use the shortcode outside the wordpress loop?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How can I use the shortcode outside the wordpress loop?’ is closed to new replies.
Skip to toolbar