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!