I'm pretty new to wordpress, html, css, and javascript and would love your help if possible:
I'm trying to create a dual slider for the featured content area of my blog where there will be three featured youtube videos on the left slider, and the post excerpt on the right slider. Here's how I picture it.
I think i'm doing this inefficiently at the moment; using dualslider
Right now I have three divs on the right panel, one for each post where the_excerpt() is being output in each div:
<div class="detail" >
<?php $args=array('tag' => 'Featured1', 'showposts'=>1, 'caller_get_posts'=>1);
$my_query = new WP_Query($args);
if( $my_query->have_posts() )
{
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" <?php the_title(); ?></a></p>
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<h3><?php the_excerpt(); ?></h3>
<?php endwhile;
}
wp_reset_query(); ?>
</div><!--END detail1-->
And three divs on the left, one for each video where the_content is being output to each div:
<div class="detail" >
<?php $args=array('tag' => 'Featured1', 'showposts'=>1, 'caller_get_posts'=>1);
$my_query = new WP_Query($args);
if( $my_query->have_posts() )
{
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" <?php the_title(); ?></a></p>
<h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<h3><?php the_content(); ?></h3>
<?php endwhile;
}
wp_reset_query(); ?>
</div><!--END detail1-->
The three posts that I want featured are each tagged Featured1, Featured2, and Featured3, and the post content is just the iframe youtube embed code followed by whatever I want to be in the right content panel.
Finally, aside from it being difficult to format the carousel size of the videos given i don't really understand the dualslider javascript file, my other problem is that I need the currently playing video to be paused when you move from slide to slide similar to the functionality provided in AnythingSlider (http://css-tricks.com/examples/AnythingSlider/#panel1-4).
Any help would be much appreciated. Thanks!
caller_get_postsis deprecated. - elclanrs