2015-12-19 101 views
1

我的項目需要將帖子的標題添加到滑塊的點導航。 如何在自定義位置調用點導航或者僅將此運行爲滑塊的點導航?自定義導航flexslider2或滑動滑塊

  <ul class="slides"> 
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
       <li> 
        <?php the_title();?> 
       </li> 
       <?php endwhile;endif;wp_reset_query();?> 
      </ul> 

回答

0

解決,可能這會幫助別人:)

<div class="flexslider-controls"> 
    <ol class="flex-control-nav"> 
    <li>Slide 1 Control</li> 
    <li>Slide 2 Control</li> 
    <li>Slide 3 Control</li> 
    <li>Slide 4 Control</li> 
    </ol> 
</div> 

var $flexslider = $('.flexslider'); 
$flexslider.flexslider({ 
    animation: "slide", 
    manualControls: ".flex-control-nav li", 
    useCSS: false 
});