Title: Plugin: Advanced Custom Fields
Last modified: August 22, 2016

---

# Plugin: Advanced Custom Fields

 *  [Joseph Dickson](https://wordpress.org/support/users/josephdickson/)
 * (@josephdickson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields/)
 * Hi everyone,
    I ran into an issue with Advanced Custom Fields where an empty 
   container is displaying instead of the “else” statement after the content has
   been removed from the container. So to be clear it once had information but that
   information was deleted.
 * URL: [http://pitweb.pitzer.edu/advancement/faculty-staff-gift-campaign/](http://pitweb.pitzer.edu/advancement/faculty-staff-gift-campaign/)
 * I’m pretty sure my has an error can anyone see my mistake in the php below?
 *     ```
       <?php
       	// check if the accordion repeater field has rows of data
       	if( have_rows('accordion') ): ?>
        	<?php // loop through the rows of data
       	    while ( have_rows('accordion') ) : the_row(); ?>
       		<div class="section-container accordion content" data-section="accordion">
       			<section>
       				<p class="title" data-section-title><strong><a href="#"><?php the_sub_field('accordion_title'); // accordion title acf ?></a></strong></p>
   
       		<div class="content" data-section-content>
   
       			<?php the_sub_field('accordion_content'); // accordion content acf ?>
   
       		</div>
       			</section>
   
       		</div>
   
       		<?php 
   
       	    endwhile;
   
       	else :
   
       	    // no rows found
   
       	endif;
       ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Joseph Dickson](https://wordpress.org/support/users/josephdickson/)
 * (@josephdickson)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields/#post-5436676)
 * I downgraded from ACF Pro 5.1.1 to 5.1.
 * Downgrading fixed the problem. I’ll wait until the next version to upgrade 🙁
 *  [Tusko Trush](https://wordpress.org/support/users/tusko-trush/)
 * (@tusko-trush)
 * [11 years ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields/#post-5436946)
 * [@joseph](https://wordpress.org/support/users/joseph/)
    how I can downgrade in
   ACF?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin: Advanced Custom Fields’ is closed to new replies.

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tusko Trush](https://wordpress.org/support/users/tusko-trush/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields/#post-5436946)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
