Sorry to reopen this ticket.
I’m using Custom Fields again but this time I’m using an image array and when I use the method outlined above it just outputs the image array number as text instead of displaying the image. Just wondering how I might go at displaying an image with the same code you provided?
I found this on the ACF plugin site https://www.advancedcustomfields.com/resources/image/
Just unsure how I integrate their code half way down the page into what you wrote up for me.