Flex slider integration
-
Hi Guys,
I am creating a site for a client and running into a problem, client requires a different slider on multiple pages. so i have created a new post type called sliders with support for thumbnail and title. then created 4 categories Home, Residential, Commercial and Roof.
i have called in my jquery files for flex slider.
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/flexslider.css" type="text/css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="<?php echo get_template_directory_uri(); ?>/jquery.flexslider.js"></script> <script src="<?php echo get_template_directory_uri(); ?>/jquery.flexslider-min.js"></script>
Before wp_head
and jquery and files are linking fine.
and my code in the template looks like this.<div class="flexslider"> <ul class="slides"> <?php query_posts(array('post_type'=>'Sliders', 'category_name' => 'Residential')); if(have_posts()) : while(have_posts()) : the_post(); ?> <li> <?php the_post_thumbnail(); ?> <p class="flex-caption"><?php the_title(); ?></p> </li> <?php endwhile; endif; wp_reset_query(); ?> </ul> </div>
For some reason the slider is not working? its only showing the background of flex slider and i cannot figure out why any help would be great.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Flex slider integration’ is closed to new replies.