Home › Forums › Front-end Issues › Custom Field Not Displaying in Front End › Reply To: Custom Field Not Displaying in Front End
The original code was only taking the first category, and depending on how the terms are sorted then it may have chosen one without an image. If you wanted to always use the top level category then you’d need to loop through the list of terms and find the one with the parent of 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.