Slider is not working.. Please can any help me…
-
I am using Weekly theme, alomost all things are working except featured slider in front page.
My web site is https://www.massraja.com
In wordpress editor, i got this code for slider widget..please can any one find the bug in this code why it is not displaying the posts .<div id="loopedSlider"> <div class="container"> <div class="slides"> <?php $sticky = get_option('sticky_posts'); $home_featured_from = get_theme_mod('home_featured_from'); $home_featured_num = get_theme_mod('home_featured_num'); $home_featured_cat = get_theme_mod('home_featured_cat'); if($home_featured_from == 'Sticky Posts') { query_posts(array( 'showposts' => $home_featured_num, 'post__in' => $sticky, 'caller_get_posts' => 1 )); } else { query_posts(array( 'showposts' => $home_featured_num, 'cat' => $home_featured_cat, 'caller_get_posts' => 1 )); } while(have_posts()) : the_post(); global $wp_query; $maxnum = $wp_query->found_posts; ?> <div id="featured-<?php the_ID(); ?>"> <p class="featured-thumb"> <?php tj_thumbnail(280,get_theme_mod('home_featured_thumb_height')); ?> </p> <h2 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themejunkie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <p class="entry-meta"> <span class="date"><?php the_time(get_option('date_format')); ?></span> <span class="meta-sep">|</span> <span class="comments-link"><?php comments_popup_link( __( '0 Comment', 'themejunkie' ), __( '1 Comment', 'themejunkie' ), __( '% Comments', 'themejunkie' ) ); ?></span> </p> <p> <?php tj_content_limit(105); ?> <a class="meta-more" href="" title="<?php printf( esc_attr__( 'Permalink to %s', 'themejunkie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php _e('Read more','themejunkie'); ?> <span class="meta-nav">»</span></a> </p> </div> <!--end .slides--> <?php endwhile; wp_reset_query(); ?> </div> <!--end #post--> </div> <!--end .container--> <ul class="pagination"> <?php $i = 1; $home_featured_num = get_theme_mod('home_featured_num'); while($i <= $home_featured_num) : echo '<li><a href="#">'; echo $i; echo '</a></li>'; $i++;?> <?php endwhile; ?> </ul> </div> <!--end #loopslider--> <script type="text/javascript" charset="utf-8"> $(function(){ $('#loopedSlider').loopedSlider(); }); </script>
Thank you in advance.
- The topic ‘Slider is not working.. Please can any help me…’ is closed to new replies.