I want to use the 'Smooth Div Scroll' Slider Slider Website
In my custom Wordpress theme, i already have one slider there, but my issue is that i don't need just to load images as i've found on other posts here on stack overflow, but the images must be loaded from a category of posts in wordpress.
Here's my website Diario Metropolis
How can i accomplish this? I'm using the "simple slider" at the moment, and the parameters of this are stored in a .php file.
This is the code that loads the content on my actual slider (Simple slider)
On index.php
<?php include (TEMPLATEPATH . '/slide.php'); ?>
On Slide.php
<?php $slide = get_option('repo_slide_cat'); `$count = get_option('repo_slide_count');
$slide_query = new WP_Query( 'category_name='.$slide.'&posts_per_page='.$count.'' );
while ( $slide_query->have_posts() ) : $slide_query->the_post();
?>
And the classic timthumb script
<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=350&w=655&zc=1" alt=""/></a> <?php } else { ?>
<a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
How can i adapt the smoothdivscroll slider to accomplish this behavior? I don't need as i said before, to just load images from a specified folder, i need to load images dynamically from posts in my website.
Any help would be of great help, thanks in advance.
Robert Lee My wp-enqueue-script code is as follows:
<?php wp_enqueue_script('jquery');
wp_enqueue_script('superfish', get_stylesheet_directory_uri() .'/js/superfish.js');
wp_enqueue_script('jqui', get_stylesheet_directory_uri() .'/js/jquery-ui-1.8.23.custom.min');
wp_enqueue_script('slides', get_stylesheet_directory_uri() .'/js/jquery.smoothdivscroll-1.3.js');
wp_enqueue_script('slides', get_stylesheet_directory_uri() .'/js/jquery.kinetic');
wp_enqueue_script('slides', get_stylesheet_directory_uri() .'/js/jquery.mousewheel.min');
wp_enqueue_script('effects', get_stylesheet_directory_uri() .'/js/effects.js');
wp_enqueue_script('liscroll', get_stylesheet_directory_uri() .'/js/liscroll.js');
?>
I modified the effects.js as you told me, but still nothing :(