I am using the following code in my page template…
“/>
Instead of displaying the image is displays the a broken image link. On further investigation the link is the following…
http://tgghosting.com/artsciti-2/artist-list/132, , mintcondition, , , http://tgghosting.com/artsciti-2/wp-content/uploads/2013/08/mintcondition.jpg, 1024, 636, Array
How do I just extract the url only for the img tag?
Hi @mharding
Your value shows clearly that you are trying to render an array. This is not possible in PHP. You need to only echo the $value[‘url’] or the size you want.
Please read up on the image field docuemtnation to fully understand how the image object vs the image ID return value works.
Thanks
E