Home › Forums › General Issues › Fields do not load properly
Hello everyone! I am facing an issue, where not all the fields load properly. And sometimes (on first page load) no field displays in the front end.
This is an example of my site that uses fields: http://defakto.cz/w2015/projekty/interier/
It has to be refreshed 1 or 2 times before the images appear. It’s really weir though, because the code (both source PHP and loaded is valid).
So only thing that comes to my mind is that it is too many request for the server. But the problem persist even after installing and setting-up WP Super Cache.
Here is the template code that I use:
<div id="projekty">
<ul>
<li><a href="<?php the_field('odkaz_projektu_1'); ?>"><img src="<?php the_field('foto_projektu_1'); ?>" id="1" alt="<?php the_field('nazev_projektu_1'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_2'); ?>"><img src="<?php the_field('foto_projektu_2'); ?>" id="2" alt="<?php the_field('nazev_projektu_2'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_3'); ?>"><img src="<?php the_field('foto_projektu_3'); ?>" id="3" alt="<?php the_field('nazev_projektu_3'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_4'); ?>"><img src="<?php the_field('foto_projektu_4'); ?>" id="4" alt="<?php the_field('nazev_projektu_4'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_5'); ?>"><img src="<?php the_field('foto_projektu_5'); ?>" id="5" alt="<?php the_field('nazev_projektu_5'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_6'); ?>"><img src="<?php the_field('foto_projektu_6'); ?>" id="6" alt="<?php the_field('nazev_projektu_6'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_7'); ?>"><img src="<?php the_field('foto_projektu_7'); ?>" id="7" alt="<?php the_field('nazev_projektu_7'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_8'); ?>"><img src="<?php the_field('foto_projektu_8'); ?>" id="8" alt="<?php the_field('nazev_projektu_8'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_9'); ?>"><img src="<?php the_field('foto_projektu_9'); ?>" id="9" alt="<?php the_field('nazev_projektu_9'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_10'); ?>"><img src="<?php the_field('foto_projektu_10'); ?>" id="10" alt="<?php the_field('nazev_projektu_10'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_11'); ?>"><img src="<?php the_field('foto_projektu_11'); ?>" id="11" alt="<?php the_field('nazev_projektu_11'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_12'); ?>"><img src="<?php the_field('foto_projektu_12'); ?>" id="12" alt="<?php the_field('nazev_projektu_12'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_13'); ?>"><img src="<?php the_field('foto_projektu_13'); ?>" id="13" alt="<?php the_field('nazev_projektu_13'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_14'); ?>"><img src="<?php the_field('foto_projektu_14'); ?>" id="14" alt="<?php the_field('nazev_projektu_14'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_15'); ?>"><img src="<?php the_field('foto_projektu_15'); ?>" id="15" alt="<?php the_field('nazev_projektu_15'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_16'); ?>"><img src="<?php the_field('foto_projektu_16'); ?>" id="16" alt="<?php the_field('nazev_projektu_16'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_17'); ?>"><img src="<?php the_field('foto_projektu_17'); ?>" id="17" alt="<?php the_field('nazev_projektu_17'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_18'); ?>"><img src="<?php the_field('foto_projektu_18'); ?>" id="18" alt="<?php the_field('nazev_projektu_18'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_19'); ?>"><img src="<?php the_field('foto_projektu_19'); ?>" id="19" alt="<?php the_field('nazev_projektu_19'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_20'); ?>"><img src="<?php the_field('foto_projektu_20'); ?>" id="20" alt="<?php the_field('nazev_projektu_20'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_21'); ?>"><img src="<?php the_field('foto_projektu_21'); ?>" id="21" alt="<?php the_field('nazev_projektu_21'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_22'); ?>"><img src="<?php the_field('foto_projektu_22'); ?>" id="22" alt="<?php the_field('nazev_projektu_22'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_23'); ?>"><img src="<?php the_field('foto_projektu_23'); ?>" id="23" alt="<?php the_field('nazev_projektu_23'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_24'); ?>"><img src="<?php the_field('foto_projektu_24'); ?>" id="24" alt="<?php the_field('nazev_projektu_24'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_25'); ?>"><img src="<?php the_field('foto_projektu_25'); ?>" id="25" alt="<?php the_field('nazev_projektu_25'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_26'); ?>"><img src="<?php the_field('foto_projektu_26'); ?>" id="26" alt="<?php the_field('nazev_projektu_26'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_27'); ?>"><img src="<?php the_field('foto_projektu_27'); ?>" id="27" alt="<?php the_field('nazev_projektu_27'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_28'); ?>"><img src="<?php the_field('foto_projektu_28'); ?>" id="28" alt="<?php the_field('nazev_projektu_28'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_29'); ?>"><img src="<?php the_field('foto_projektu_29'); ?>" id="29" alt="<?php the_field('nazev_projektu_29'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_30'); ?>"><img src="<?php the_field('foto_projektu_30'); ?>" id="30" alt="<?php the_field('nazev_projektu_30'); ?>" /></a></li>
<li><a href="<?php the_field('odkaz_projektu_31'); ?>"><img src="<?php the_field('foto_projektu_31'); ?>" id="31" alt="<?php the_field('nazev_projektu_31'); ?>" /></a></li>
</ul>
</div>
Hi @maresj
It is possible you have hit the php variable limits.
Try adding this settings to your php config files.
max_execution_time = 90 ; Maximum execution
max_input_time = 60 ; Maximum amount of time
memory_limit = 512M ; Maximum amount of memory
max_input_vars = 2000
suhosin.post.max_vars = 5000
suhosin.request.max_vars = 500
You must be logged in to reply to this topic.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?
— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.