Hi,
So I have a query which searches for pages using a specific template. The code then pulls in an image from the page along with the page title. All of this works successfully.
However, I am having issues making the image and text a link to the pages from which they have came from.
How would I go about this?
Thanks
Jake
Hi @jakeward
Regarding the link for the title, kindly check this function: https://developer.wordpress.org/reference/functions/get_permalink/.
Regarding the image field, kindly check the example here: https://www.advancedcustomfields.com/resources/image/.
I hope this helps 🙂
Hi James,
Thank you very much for your post. I managed to do it!
Thanks again
Jake