Home › Forums › General Issues › Displaying ACF Relationship Field in Template › Reply To: Displaying ACF Relationship Field in Template
I’m developing locally, so I don’t have a URL to share yet. Here is a Gist with the full code for my index.php file:
https://gist.github.com/bibliofille/56f2a29528b708a16db6a09c79ea5859
The ACF relationship fields called after the main loop are working fine, but the one called before the main loop shows up properly, but messes up the loop and prevents that content from appearing.
Here is a screenshot of the result of my index.php file. There should be a post title and thumbnail image under every small green line in the grid.
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.