Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How do display JWPlayer shortcode from custom meta box
* The JW Player plugin drops shortcode into the editor. It's not filtered through WordPress's do_shortcode().
* You need to use jwplayer_tag_callback().
global $post;
if (get_post_meta($post->ID, '_cmb_mini_wysiwyg', true) ):
$myvid = get_post_meta($post->ID, '_cmb_mini_wysiwyg', true);
$myvid = jwplayer_tag_callback( $myvid );
echo $myvid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment