The problem I have been researching is how to call the jw player pluggin for the homepage slider which uses featured video section with custom fields in the following code. This usually is just for embedding youtube or vimeo, but hope you guys may be able to help.
<ul id="slider1"><?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_slider'),'posts_per_page'=>of_get_option('postnumber_slider'))); ?><?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?><?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video']; ?><?php global $more; $more = 0; ?> <li> <?php if ( $video ) : ?> <div class="feature_video"><?php echo $video; ?></div> <?php else: ?> <a class="feature_img" href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'home-feature' ); ?></a><?php endif; ?>
So more specific I need to edit
<?php if ( $video ) : ?> <div class="feature_video"><?php echo $video; ?></div>
I have been trying to figure out how to call the jw player pluggin in the echo $video section by changing out the code with several different options but have yet to find one that gets the player to run the shortcode and initiate the video.
These are some of the resources I have tried so far: http://wordpress.org/support/topic/plugin-jw-player-plugin-for-wordpress-executing-via-do_shortcode
Thank you for your help,
- The topic ‘How to call JW Player in homepage slider’ is closed to new replies.