title: get_template_part() not working with Advanced Custom Fields plugin
body: <p>I work on the WordPress project I created testimonials in a special file called testimonials.php and I called the file on the page about us by get_template_part and it works fine but when I called (testimonials.php) to the home page  not show all parts of the input.</p>
  
  <p>Use the Advanced Custom Fields plugin</p>
  
  <p>This code</p>
  
  <pre><code>&lt;!-- Start Section Testimonials --&gt;
  &lt;section class="testimonials section-padding"&gt;
      &lt;div class="carousel-right col-lg-7 col-md-7 col-sm-7 col-xs-12"&gt;
          &lt;div class="owl-carousel"&gt;
              &lt;?php $testimonials = array ('post_type' =&gt; 'Testimonials' , 'order' =&gt; 'ASC');
                  $query = new wp_query($testimonials);
                      if ($query-&gt;have_posts()) {
                      while ($query-&gt;have_posts()){
                          $query-&gt;the_post(); ?&gt;
                              &lt;!-- Start Item 1 --&gt;
                              &lt;div class="testimonials-item"&gt;
                                  &lt;!-- Testimonials Text --&gt;
                                  &lt;div class="testimonials-text-item"&gt;
                                      &lt;?php the_content(); ?&gt;
                                  &lt;/div&gt;
                                  &lt;!-- Testimonials Title --&gt;
                                  &lt;div class="testimonials-title clearfix"&gt;
                                      &lt;!-- Title Img --&gt;
                                      &lt;div class="title-img"&gt;
                                          &lt;img src="&lt;?php the_field('image'); ?&gt;" alt="testimonials"&gt;
                                      &lt;/div&gt;
                                      &lt;!-- Title Text --&gt;
                                      &lt;div class="title-text"&gt;
                                          &lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;
                                          &lt;p&gt;&lt;?php the_field('small_title'); ?&gt;&lt;/p&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;!-- End Item 1 --&gt;
                          &lt;?php }} ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;?php wp_reset_postdata(); ?&gt;
      &lt;!-- Start Title --&gt;
      &lt;?php $testimonials = get_field('testimonials'); ?&gt;
      &lt;div class="container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-lg-4 col-md-5 col-md-5 col-sm-4 col-xs-12"&gt;
                  &lt;div class="testimonials-text clearfix"&gt;
                      &lt;div class="title"&gt;
                          &lt;span&gt;&lt;?php echo $testimonials['small_title']; ?&gt;&lt;/span&gt;
                          &lt;h2&gt;&lt;?php echo $testimonials['main_title']; ?&gt;&lt;/h2&gt;
                      &lt;/div&gt;
                      &lt;div class="text-p"&gt;
                      &lt;?php echo $testimonials['description']; ?&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- End Title --&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>The part that does not appear from 
  All inputs</p>
  
  <pre><code>&lt;span&gt; &lt;? php echo $ testimonials ['small_title']; ?&gt; &lt;/ span&gt;
  &lt;h2&gt; &lt;? php echo $ testimonials ['main_title']; ?&gt; &lt;/ h2&gt;
  &lt;? php echo $ testimonials ['description']; ?&gt;
  </code></pre>