On the right rail here: http://www.julianamaeberger.com/soma/sample-testimonial-3/ I am showing a random post "Testimonial". Below that I am showing all featured images for the category "Testimonial" so that you can flip through the images and choose where you want to go next.
I want to highlight the image that is related to the content above, but can't figure out how to do it. This is my first time building templates, so I may be going about it the wrong way. Any help in the right direction would be much appreciated.
Here is the code for the right rail:
<div class="rightcolumn">
<div class="testimonial">
<h3>Testimonials</h3>
<?php
$postslist = get_posts('category_name=testimonial&numberposts=1&orderby=rand');
foreach ($postslist as $post) :
setup_postdata($post);
?>
<?php the_content(); ?>
<?php endforeach; ?>
</div>
<div class="carousel default">
<div class="jCarouselLite">
<ul class="portfolio">
<?php
$postslist = get_posts('category_name=testimonial&numberposts=-1&order=DES');
foreach ($postslist as $post) :
setup_postdata($post);
?>
<li>
<?php the_post_thumbnail( 'nav' ); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<script type="text/javascript">
$(".default .jCarouselLite").jCarouselLite({
btnNext: ".default .next",
btnPrev: ".default .prev",
visible: 3,
scroll: 3,
speed:100
});
</script>
</div>
</div>