Facebook
From Toxic Leech, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 115
  1.     <div class="sw-testimonials-container">
  2.                         <?php while ($query->have_posts()) : $query->the_post(); ?>
  3.                                 <div class="sw-testimonial-card">
  4.  
  5.                                         <?php
  6.                                         // which acf fields do we have?
  7.                                         $id = $query->post->ID;
  8.  
  9.                                         if( ! class_exists('ACF') ) {
  10.                                             $fields = get_fields($id);
  11.                                         }
  12.  
  13.  
  14.                                         echo " <pre>";
  15.                                         var_dump($fields);
  16.                                         echo "</pre>";
  17.  
  18.                                         ?>
  19.  
  20.  
  21.                                         <div class="testimonial-quote">
  22.                                                 <?php the_content() ?>
  23.                                         </div>
  24.  
  25.                                         <div class="testimonial-details">
  26.  
  27.  
  28.                                 </div>
  29.                         <?php endwhile; ?>
  30.  
  31.                 </div>
  32.  
  33.                 <?php wp_reset_postdata(); ?>
  34.  
  35. <?php endif;