title: Display one testimonial at a time
body: <p><a href="https://i.stack.imgur.com/6VvDU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6VvDU.png" alt="enter image description here"></a></p>
  
  <pre><code>  &lt;?php $query = new WP_Query( 
           array( 'post_type' =&gt; 'testimonial' ,
                  'posts_per_page' =&gt; -1,
                 ) );
  
      if ( $query-&gt;have_posts() ) : ?&gt;
      &lt;?php while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt; 
      &lt;div class="testimonials-name"&gt;&lt;?php the_title();?&gt;&lt;/div&gt;
      &lt;div class="testimonials-carousel-content"&gt;&lt;p&gt;&lt;?php the_content() ;?&gt;&lt;/p&gt;&lt;/div&gt;
  
      &lt;?php endwhile; wp_reset_postdata(); ?&gt;
      &lt;!-- show pagination here --&gt;
      &lt;?php else : ?&gt;
  
      &lt;!-- show 404 error here --&gt;
      &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>I have this query but it display all the testimonial's I want it to display one testimonial at a time how to do this please help</p>
  
  <p>I am not able to do this </p>