@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!