Is this your exact code? If it is then you have an extra opening php tag that appears before your first endif. There is no closing php tag on the code that precedes this. I’m not sure if this would cause it, but it would cause something to go wrong.
Welcome
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
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.