Home › Forums › Add-ons › Gallery Field › Gallery images not displaying on SOME pages › Reply To: Gallery images not displaying on SOME pages
Yes, I have tested that as well, and it is correct. I also used this code to display the values of all the fields:
$fields = get_fields( $post->ID );?>
<pre> <?php var_dump($fields) ?> </pre>
I then compared the output on both the archive page and category pages. Everything is the same except on the archive page, the “photos” field shows an array filled with different photos and sizes, whereas the output on the category pages has a completely empty array.
["photos"]=>
array(0) {
}
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.