2012-03-05 8 views
1

私は、WP eコマースを使用して特集された商品スライダーを作成するためにSupersizedスライダーを採用しました。スーパーサイズスライダー+ Wp電子商取引

私はスライダをインストールする前に、フィーチャーカテゴリに属していた製品に対しては完璧に動作しますが、カテゴリに新しい製品を追加するとすぐに破損します。

誰かが私のコードをすばやく見て、より良いやり方をして、それが間違っているかどうかを知ることができますか?論理的には私には見えません!

は、ここに私のソースを見てみることができます:http://thetechhunter.co.za/

var $j = jQuery.noConflict(); 

     jQuery(function($){ 
      $j.supersized({ 

       //Functionality 
       slideshow    : 1,  //Slideshow on/off 
       autoplay    : 1,  //Slideshow starts playing automatically 
       start_slide    : 1,  //Start slide (0 is random) 
       random     : 0,  //Randomize slide order (Ignores start slide) 
       slide_interval   : 10000, //Length between transitions 
       transition    : 1,  //0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left 
       transition_speed  : 500, //Speed of transition 
       new_window    : 0,  //Image links open in new window/tab 
       pause_hover    : 0,  //Pause slideshow on hover 
       keyboard_nav   : 1,  //Keyboard navigation on/off 
       performance    : 1,  //0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit) 
       image_protect   : 1,  //Disables image dragging and right click with Javascript 
       image_path    : 'img/', //Default image path 

       //Size & Position 
       min_width    : 0,  //Min width allowed (in pixels) 
       min_height    : 0,  //Min height allowed (in pixels) 
       vertical_center   : 1,  //Vertically center background 
       horizontal_center  : 1,  //Horizontally center background 
       fit_portrait   : 1,  //Portrait images will not exceed browser height 
       fit_landscape   : 0,  //Landscape images will not exceed browser width 

       //Components 
       navigation    : 1,  //Slideshow controls on/off 
       thumbnail_navigation : 1,  //Thumbnail navigation 
       slide_counter   : 1,  //Display slide numbers 
       slide_captions   : 1,  //Slide caption (Pull from "title" in slides array) 
       slides     : [  //Slideshow Images 


            <?php $my_query = new WP_Query(array('post_type' => 'wpsc-product', 'wpsc_product_category'=>'featured-products')); while($my_query->have_posts()) : $my_query->the_post();?> 

                {image : '<?php echo wpsc_the_product_image(); ?>', 
                title : '<div class="slidecaptioninside"><a href="<?php echo wpsc_the_product_permalink(); ?>"><?php echo wpsc_the_product_title(); ?></a><br /><span style="color: #111;"><?php echo wpsc_the_product_price(); ?></span></div><br /><div class="slidedescription"><?php $excerpt = wpsc_the_product_description(); echo string_limit_words($excerpt,50)."...";?></div>', 
                 url : '<?php echo wpsc_the_product_permalink(); ?>'}, 

            <?php endwhile; ?>  
              ] 

      }); 
     }); 

答えて

1

あなたはこのプラグインのインストールには、あなたはまた、これらのチュートリアルのリンクをたどることができます私は、これは何が必要であると思いますし、私を聞かせてWP Supersized

を試してみました知っている。プラグイン

How to integrate Supersized in wordpress

、著者が出力する画像の配列を「関数slides_listを()」を使用しているように見える、最終スライドのコンマを除去します。

すでに解決済みの場合は、他の人のために回答を投稿してください。

関連する問題