Support

Account

Home Forums Backend Issues (wp-admin) All fields and entries disappeared

Solved

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 πŸ™‚

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

You must be logged in to reply to this topic.