Reply To: Import youtube vids, use JWplayer in theme only when metabox in admin is filled

Home Forums JW Player 7 for WordPress Import youtube vids, use JWplayer in theme only when metabox in admin is filled Reply To: Import youtube vids, use JWplayer in theme only when metabox in admin is filled

#1928
ilGhera
Keymaster

Hi @Jeroen.
You can use this email address: info@ilghera.com
Anyway, the code I posted works inside the loop; the condition if checks if the current post… get_the_ID … has a specific post_meta or not.
If yes, the shortcode of the plugin is executed by the function echo do_shortcode();, that requires the shortcode itself as argument.
In your case, since you have to get the first video of the post/ page, you can simply use jw7-video, inside square brackets of course.