Home › Forum › JW Player 7 for WordPress › Import youtube vids, use JWplayer in theme only when metabox in admin is filled › Rispondi a: Import youtube vids, use JWplayer in theme only when metabox in admin is filled
You can use this email address: firstname.lastname@example.org
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.