WordPress.org

Ready to get started?Download WordPress

Forums

JW Player for Flash & HTML5 Video
[Plugin: JW Player for WordPress – Flash & HTML5 Video Player] How to use short code with php (2 posts)

  1. brokensite
    Member
    Posted 2 years ago #

    I'm using this but it doesn't work, short code is fine inside post and widget area

    <?php
    			echo do_shortcode('[jwplayer config="Custom Player" mediaid="635"]'); ?>

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

  2. JW Player
    Member
    Plugin Author

    Posted 2 years ago #

    @brokensite,

    Unfortunately, the plugin uses a filter instead of WordPress's shortcode system to generate the shortcode. So you would need to apply the jwplayer_tag_callback filter to the shortcode.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic