누군가가 이것을 도울 수 있기를 바랍니다. 웹에서 답변을 찾고 있습니다. localhost에서 내 wordpress에 http://320press.com/wpbs/을 사용하지만 캐 러셀이 제대로 작동하지 않는 것으로 보입니다.wordpress 부트 스트랩 슬라이더 회전식 컨베이어
사실상 질문해야하지만 중요한 부분이 첫 번째 것입니다.
어떻게
당신은 이미지 슬라이드가 작동 할 수 있도록 화살표를 클릭해야, 설정하는 방법이 회전 목마 내 워드 프레스 내부의 모든 게시물을 표시하는 대신 특정 범주를 호출 할 수 있습니다 그것은 자동으로 슬라이드?
<?php $use_carousel = of_get_option('showhidden_slideroptions'); if ($use_carousel) { ?> <div id="myCarousel" class="carousel slide"> <!-- Carousel items --> <div class="carousel-inner"> <?php global $post; $tmp_post = $post; $show_posts = of_get_option('slider_options'); $args = array('numberposts' => $show_posts); // set this to how many posts you want in the carousel $myposts = get_posts($args); $post_num = 0; foreach($myposts as $post) : setup_postdata($post); $post_num++; $post_thumbnail_id = get_post_thumbnail_id(); $featured_src = wp_get_attachment_image_src($post_thumbnail_id, 'wpbs-featured-carousel'); ?> <div class="<?php if($post_num == 1){ echo 'active'; } ?> item"> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('wpbs-featured-carousel'); ?></a> <div class="carousel-caption"> <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4> <p> <?php $excerpt_length = 100; // length of excerpt to show (in characters) $the_excerpt = get_the_excerpt(); if($the_excerpt != ""){ $the_excerpt = substr($the_excerpt, 0, $excerpt_length); echo $the_excerpt . '... '; ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" class="btn btn-primary">Read more ›</a> <?php } ?> </p> </div> </div> <?php endforeach; ?> <?php $post = $tmp_post; ?> </div> <!-- Carousel nav --> <a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> </div> <?php } // ends the if use carousel statement ?>
은 정말 당신의 도움을 주셔서 감사합니다! 감사합니다.
안녕 내가 이것을 사용, 많이 치라 감사합니다 : 내가 회전 목마가 아래와 같이 autoslide하는 매개 변수를 제공 할 생각 HTTP : //www.lanexa.net/2012/ 04/how-to-make-bootstrap-carousel-display-wordpress-dynamic-content/ 모든 것이 다 괜찮습니다. – user1705333
안녕하세요 !!! –