Home › Forums › ACF PRO › Relationship field in a block › Reply To: Relationship field in a block
@kiwicreative not sure if I have something more fundamentally wrong somewhere!
I’ve changed it to get_field()
and created a simple page template to test things. If I print_r($posts)
I don’t see any custom field values in the array (not sure if I should), but the custom field values are empty on the page.
Here’s my test page – https://treegrowing.tcv.org.uk/identify/testing-block – the three values (Scientific Name, Family and Scientific Family) should populate from custom fields in the related post – ID 65.
Thanks for your help – much appreciated!
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.