need help, I get this with the code bellow. 8, , logohome, , , http://localhost/wordpress/wp-content/uploads/2013/06/logohome.png, 300, 50, Array
Hi @brody182
If an array is showing in the img src attribute, then you have set the return type of the image field to ‘Image Object’. This will return an array of data and cannot be simple ‘echoed’ into the img tag.
Please read the image field docs to understand how to get the URL
Thanks
E
i under stand how to output the image field manually, but in my case i cannot do that I have a text field in the admin where users enter the image field value and then it will output the field with a variable like so the_field($text);
anyway to make this work?
thanks
Hi @brody182
Whether the parameter is ‘field_name’ or $text, the same issue remains.
Your image field will return an array of data if you have selected a return type of ‘Image Object’.
Please read the documentation to discover how to get the URL instead of a Array
ok got it, why do you have ‘image object’ in the settings?
Hi @brody182
Because it is useful to get an array of data.
Thanks
E