• i have a custom post type of Testimonial

    i am trying to put the entries of this custom post type within a carousel

    this is what i have

    <?php
                    $args = array(
                        'post_type' => 'testimonial',
                        'post_status' => 'publish',
                        'posts_per_page' => 10 );
    ?>
                <div class="carousel slide" id="fade-quote-carousel" data-ride="carousel" data-interval="4000">
                      <ol class="carousel-indicators">
    				    <li data-target="#fade-quote-carousel" data-slide-to="0" class="active"></li>
    				    <li data-target="#fade-quote-carousel" data-slide-to="1"></li>
    				  </ol>
    				  <div class="carousel-inner">
                          <?php $loop = new WP_Query( $args );
                    while ( $loop->have_posts() ) : $loop->the_post(); ?>
    				    <div class="active item">
                            <?php the_title();?>
    <p><?php the_content();?></p>
    </div>
    <?php endwhile; wp_reset_query(); ?>
    	 </div>
    </div>

    it is outputting every entry, any help/suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Why not just use a plugin such as WP Posts Carousel?

    Thread Starter teamcanada613

    (@teamcanada613)

    because i am interested in the ability of manipulating it in any way i want, design wise, without using someone else’s plugin, so that i may further my abilities and understand wordpress much better i guess, anyways just wondering if someone has any ideas? or know where to look for such a thing

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom post type testimonial carousel help’ is closed to new replies.