How to get an image url given term_image_tid using the customfield-PHP views module
You shouldn't use a PHP code field, rather you can use the Image URL formatter module to create a image URL field, exclude it from display, &amp; then use that image URL field to feed into a Global: Custom text field with your own custom img &amp; a markup.