Home Forums Front-end Issues All ACF Data Not Loading / Sporadic


All ACF Data Not Loading / Sporadic

  • I have several sits in development running into a similar issue. It seems like the ACF data is not pulling into the front end of the site. So I get the structure of the HTML surrounding it but not all the data I’ve input in the fields.

    There is little rhyme or reason. Often times it loads just fine, some times I get only the HTML but not the ACF results and have to refresh the page for it to kick in. Sometimes I actually have to navigate to another page and then return to the page I want to see.

    I am not an expert by any means in DB’s but it seems to be that the information is getting caught up some where and not being returned always by the database. Any help would be greatly appreciated.

    I first I just thought it was my hosting account, but when I moved the site to a production environment the problem persisted.

    Live site =

  • Hi @john.marcello

    This sounds like a major server issue. I would contact your webhost and get them to check the logs. It seems that on some page loads, your server is unable to load data correctly from the Database.

    It is also possible that you have some caching going on which could prevent ACF from correctly loading the data. Please make sure your site and server do not use any caching systems.

    Hope that helps.


  • There are no site/server caching systems in place. Unless something has changed dramatically without my knowledge which is highly unlikely.

    I really do not think it is a server issue, which was my first thought. However when I recently moved the site to a new server to go live (with hope of problem being fixed on it’s own.) nothing changed. I am still experiencing the issues.

  • Hi @john.marcello

    If the issue is consistent across servers, then perhaps the problem could be due to the code you use.

    Maybe you are looping over code and performing some kind of break, or rand operation? This could allow for a ‘sporadic’ appearance if not coded perfectly.

    I would definitely setup a local version of your site using MAMP or similar to test on perfect server situations.

    Also, try disabling all plugins on the local site. This may fix the issue, and you can then add them back in one by one until you hit the problem.

    Maybe also do some debugging with ACF’s function get_field and WP’s functions get_postmeta to compare the differences


  • This is happening on multiple servers, lcoally and with various hosts I have come to discover. It seems that plugin experiment is pointing to ACF. As far as debugging goes. I have no idea how to execute what you are suggesting.

    Frankly, I am getting a little nervous about using this product knowing that there now seems to be widespread issue across a dozen or so client sites I am using it on. Any additional help getting this resolved would be extremely helpful…


  • Hi @john.marcello

    If ACF isn’t working for you, that’s fine. There are quite a few other custom field plugins out there which you may enjoy more.

    Please however, take some time to do some simple debugging with ACF’s function get_field and WP’s functions get_postmeta to compare the differences.

    You may find that the issue is not with the ACF plugin, but with the code you have written in your theme.

    If you are not familiar with debugging, it is not as scary as it seems. It’s just comparing visual data by printing it out to look at. Please jump on google to see some basic examples of PHP debugging.

    I can’t offer much help other than the above, and I hope that you do debug and find the issue soon.


  • I actually had a small break through yesterday by changing the way jQuery is loaded on my sites. It fixed a lot of my issues my it is still sometime quirky.

    You know, your custom fields plugin is by far the best on the market. And at this point I am so deeply invested in that it is deployed on so many clients sites that I kind of got to get to root cause.

    It seems the issue is also isolated to just Chrome, IE/FF work like a charm. Since the sites have been loading better I have noticed that the quirk sometimes appears when I am using HTML tags within a textarea, simple stuff like and .

    Let e know if you have any more ideas. In the meanwhile I will try to debug but it’ll be a learning curve.

  • You know I am interesting in this suggestion…

    “Maybe also do some debugging with ACF’s function get_field and WP’s functions get_postmeta to compare the differences”

    However, after searching around and experimenting I am not able find any information that instructs clearly how to accomplish this.

    If there any way you can show me the steps necessary to do this?

  • You also mentioned something about a rand function. I have the following on a few sites but not every site I am having the problem with is using this function. Either way can you take a look and let me know if there is anything mal-formed that I need to be concerned about?

    <div class="praise">
    $rows = get_field('book_praise', 'option' ); 
    $rand_row = $rows[ array_rand( $rows ) ]; 
    $rand_row_comment = $rand_row['praise_comment' ]; 
    $rand_row_name = $rand_row['praise_name' ];
    $rand_row_org = $rand_row['praise_org' ];
    <div class="review">
    <span class="quote_top">“</span><span class="comment"><?php echo $rand_row_comment; ?></span><span class="quote_bottom">”</span>
    <div class="clear"></div>
    <div class="attribute">
    <span class="quote_bar"><img src="<?php echo(THESIS_USER_SKINS_URL); ?>/mobile-first/images/quote_bar.png" alt="Publications" /></span>
    <span class="name">~ <?php echo $rand_row_name; ?></span>
    <span class="org"><?php echo $rand_row_org; ?></span>
Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘All ACF Data Not Loading / Sporadic’ is closed to new replies.