Flex slider post loop carousel
-
Hey,
I’ve been working on creating a flex slider based post loop carousel for about 4 hours now and I cant figure out for the life of me why its not working properly, if anyone has advice on this I’d really appreciate any help I can get…
I’ve got all scripts etc working regarding flexslider – and few various sliders about for homepage / gallery post format / portfolio post type. Last on the list is to build a simple slider plugin – using the carousel feature.
I’m getting the carousel to come up, but it only want to display one image? (and part of an image underneath the 1 image – not a row of images like it should do)
I’ve attached the code I’ve used below. Many many thanks to anybody who can help with this!
Thanks
The call for the carousel….
<div class="flexslider"> <div id="slider" class="flexcarousel"> <ul class="slides"> <?php $post_query = new WP_Query ( 'post_type' , 'post' ); if($post_query->have_posts() ) : while($post_query->have_posts() ) : $post_query->the_post(); ?> <li> <?php the_post_thumbnail(); ?> </li><?php endwhile; ?><?php endif; ?> </ul> </div> </div>
The script… (print function)
<script type="text/javascript" charset="utf-8"> jQuery(window).load(function() { jQuery(\'.flexcarousel\').flexslider({ animation: "slide", animationLoop: true, itemWidth: 210, itemMargin: 5, minItems: 2, maxItems: 4, namespace: \'carousel-\', }); }); </script>
- The topic ‘Flex slider post loop carousel’ is closed to new replies.