Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="myCarousel" class="carousel slide">
- <div class="carousel-inner">
- <?php
- $the_query = new WP_Query(array(
- 'post__in' => get_option('sticky_posts'),
- 'ignore_sticky_posts' => 1,
- 'posts_per_page' => 1
- ));
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- ?>
- <div class="item active">
- <?php the_post_thumbnail('large');?>
- <div class="carousel-caption">
- <h4><?php the_title();?></h4>
- <p><?php the_excerpt();?></p>
- </div>
- </div><!-- item active -->
- <?php
- endwhile;
- wp_reset_postdata();
- ?>
- <?php
- $the_query = new WP_Query(array(
- 'post__in' => get_option('sticky_posts'),
- 'ignore_sticky_posts' => 1,
- 'posts_per_page' => 5,
- 'offset' => 1
- ));
- while ( $the_query->have_posts() ) :
- $the_query->the_post();
- ?>
- <div class="item">
- <?php the_post_thumbnail('large');?>
- <div class="carousel-caption">
- <h4><?php the_title();?></h4>
- <p><?php the_excerpt();?></p>
- </div>
- </div><!-- item -->
- <?php
- endwhile;
- wp_reset_postdata();
- ?>
- </div><!-- carousel-inner -->
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
- </div><!-- #myCarousel -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement