Home › Forums › Add-ons › Gallery Field › Gallery images not displaying on SOME pages › Reply To: Gallery images not displaying on SOME pages
I believe so. That outputs an empty array. The name ‘photos’ must be correct since they display fine on the archive page.
If I replace the ‘photos’ with any other custom field name for that post, that displays fine.
If I don’t use the $post->ID
parameter, the photos still display fine on the archive page, but not for the category pages.
I tried moving the code from the content-project.php template to both the archive and category pages, still no changes.
Why would two pages, using the same code, display one custom field differently?
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.