Home Forums Bug Reports ACF don't save the text in field


ACF don't save the text in field

  • I created fields on the page. When I go to fill the fields and reload the page, the fields are empty.

  • There is not enough information.

    What are the location rules, where are the fields displayed?
    Admin or front end?
    Where are the fields empty, in the admin after updating? Front end?

    Please provide details on what you are doing an potentially code if this has to do with showing the fields as well as steps to recreated the issue you’re having.

  • I will try to be as detailed as possible Thanks

    1. I am using Local on a mac book pro, and I am developing a basic theme.
    2. I installed both ACF and CPT UI and no other plugins
    3. I created a taxonomy called home_visibility in CPT UI
    4. Later in ACF I created Test Fild with text value
    5. I created a page and put “about” as a taxonomy.
    6. Then I went to my front-page.php and put this code

    <!-- About -->
      $vinosofuture_args = array(
      'post_type' => 'page',
      'tax_query' => array(
              'taxonomy' => 'home_visibility',
              'field'    => 'slug',
              'terms'    => 'about',
        $query = new WP_Query( $vinosofuture_args );
        //The query
        $vinosofuture_the_query = new WP_Query( $vinosofuture_args );
        //The Loop
        while ( $vinosofuture_the_query->have_posts() ) :
          $vinosofuture_the_query->the_post(); ?>
            <div class="container">
              <div class="row">
                <div class="quote-comment col-md-6 align-self-center section-padding ">
                  <p><span class="comment-apexes"><i class="fas fa-quote-left"></i></span> <?php  ?></p>
                  <p class="autor-text"> <span class="text-bg-blue"><?php the_title(); ?></span> <?php the_field('about_quote_cognome'); ?></p>
                <div class="are-title col-md-6 section-padding">
                  <p> <?php the_field('testo') ?> </p>
                  <div class="">
                    <span><img class="line-work-width" src="img/divide-creative.svg" alt=""></span>
                    <span class="firstcharacter">L</span> <?php the_content(); ?></p>
                  <button type="button" class="btnabout btn-about">Learn More</button>
      <!-- /About -->
      <?php endwhile;
      // Ripristina Query & Post Data originali
      wp_reset_postdata(); ?>


  • What are the location rules for the field group?

    is it
    Post Type is equal to Page

  • In ACF I created Test Field and the rule is
    Show this Field Group if:
    Page is the same as Test Front

  • I’m a little confused.

    You are updating the fields only on the home page. This is the only location where they can be used either to filter or display the values.

    But you’re doing a query for pages based on a field that is not edited on the page.

    If you want to do a query on an acf field then the field must exist on every page and edited for each page.

  • Excuse me, but I am also quite confused.
    I created a taxonomy, this taxonomy is seen within the pages that I am going to create.
    For example, I created a page called “Test front” and the desire for taxonomy I put “front”.
    Then in ACF I created “Test field” which inside a text type “Case text” value. As a rule I put “Page is equal to test front”. As a code I put what I put in the first few answers.
    When I go to the “test front” page and in the field created with ACF “Case text”, I enter some text, the text is not saved and is not displayed in the front end.
    At this point I can’t understand where I’m wrong, I reread the guides and I can’t understand

  • If the fields only exist on the home page then that is were you need to get them from.

    // here you are showing the front page
    // if you use getting fields here will 
    // show field from added for the front page
    // custom query loop
    while(have_posts()) {
      // any fields you try to show here will be from this post
      // not the page that is being displayed outside of this loop

    So, if the only place you can edit these fields is on the home page, then they won’t be shown inside the custom loop unless you supply the post ID when getting those fields.

  • I understand what is not working.
    ACF is not compatible with WP 5.3.2
    When I go to add a rule it doesn’t save and doesn’t add anything and gives me an error:

    Uncaught TypeError: Cannot read property 'attr' of undefined
        at Object.i.duplicate (acf-input.min.js?ver=5.8.7:1)
        at acf.Model.addGroup (acf-field-group.min.js?ver=5.8.7:1)
        at acf.Model.onClickAddGroup (acf-field-group.min.js?ver=5.8.7:1)
        at acf.Model.<anonymous> (acf-input.min.js?ver=5.8.7:1)
        at HTMLAnchorElement.d (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.3.2:2)
        at HTMLDivElement.dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.3.2:3)
        at HTMLDivElement.r.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable&ver=5.3.2:3)

    There are no other plugins on the site

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

The topic ‘ACF don't save the text in field’ is closed to new replies.