Home › Forums › Backend Issues (wp-admin) › All fields and entries disappeared
I dont know if it was the WordPress update or the ACF update, but all the fields under a field group suddenly disappeared along with all the field values after updates were performed!. This happened once before when updates were performed, but we had a backup of everything. This time there is no backup 🙁
I recreated the fields based on the field names that I had in the template file. I tried adding content but I dont see anything on the front end.
I have the location selected by post type. Can anyone help me figure out:
1. why everything keeps disappearing?
2. Why I cant display any of the entries
3. how to all from disappearing again after the next update?
Here is the test page Im working on: http://www.comvest.com/test/
Here is the code that was used before, but no longer works:`<?php
$args = array( ‘post_type’ => ‘portfolio_debt’, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’);
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
while(the_repeater_field(‘portfolio_headers’)):
echo ‘<tr>’;
echo ‘<td width=”30%”>’; ?>
<?php if(get_sub_field(‘company_website’) != “”): ?>
<?php echo ‘<a href=”‘?><?php the_sub_field(‘company_website’);?> <?php echo ‘”>’; ?>
<?php echo the_sub_field(‘company_name’); ?>
<?php echo ‘</a>’; ?>
<?php else: ?>
<?php echo the_sub_field(‘company_name’); ?>
<?php endif; ?>
<?php echo ‘</td>’;?>
<?php echo ‘<td width=”35%”>’; ?>
<?php echo the_sub_field(‘company_description’); ?>
<?php echo ‘</td>’;?>
<?php
echo ‘<td width=”17%”>’; ?>
<?php echo the_sub_field(‘company_industry’); ?>
<?php echo ‘</td>’;
?> <td width=”18%”><?php the_sub_field(‘investment_date’); ?></td>
<?php
echo ‘</tr>’;
endwhile;
endwhile; ?>
<?php
// Reset Post Data
wp_reset_postdata();
?>`
ok. Figured out how to get it all back. When the ACF plugin updated, it lost the addon Repeater Fields, which is how it was displaying all the table fields.
I added them as regular fields, which is why nothing was showing.
I had an old backup of the ACF plugin (v3.1.5) which brought back the addon with all the data 🙂
The topic ‘All fields and entries disappeared’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.