WordPress.org

Ready to get started?Download WordPress

Forums

How to call JW Player in homepage slider (1 post)

  1. Dave5656
    Member
    Posted 1 year ago #

    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'][0]; ?><?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
    http://wordpress.org/support/topic/plugin-jw-player-plugin-for-wordpress-display-video-with-do_short...

    Thank you for your help,

    Dave

Topic Closed

This topic has been closed to new replies.

About this Topic