php - Wordpress loop stopping Advanced Custom Fields that run after it -


i'm having problem after have ran while loop thumbnail images advanced custom fields run after loop don't display.

i'm assuming fix similar here stackoverflow question cant life of me work out.

here's section loop. i'm using inside div can change background of div.

anyone know problem?

gist here

    <section id="portfolio">         <h3>projects</h3>         <div class="card-container">              <?php global $query_string;             query_posts ('posts_per_page=3');             while(have_posts()) : the_post(); ?>                  <div class="outer">                     <div class="target">                         <div class="card">                             <div class="front">                                  <div class="thumbnail" <?php                                 if ( $id = get_post_thumbnail_id() ) {                                     if ( $src = wp_get_attachment_url( $id ) )                                     printf( ' style="background-image: url(%s);"', $src );                                 }                                 ?>>                                 </div>                                  <h5><?php the_title(); ?></h5><?php the_excerpt('read more'); ?>                                 <a href="#" class="btn  btn-front hide-desk">view site</a>                             </div>                              <div class="back">                                 <h5><?php the_title(); ?></h5>                                 <hr>                                 <p class="return"><?php the_content() ?></p>                                 <a href="#" class="btn btn-small">view site</a>                             </div>                         </div>                     </div>                 </div>             <?php endwhile; ?>               <a href="#" class="btn">view more</a>          </div>     </section> 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -