Created — forked from ramseyp/jwplayer_metabox.php

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

How do display JWPlayer shortcode from custom meta box

View jwplayer_metabox.php
1 2 3 4 5 6 7 8 9 10 11 12
* 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
Something went wrong with that request. Please try again.