Returning website screenshot based on Custom Field
i think there is an error – <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(the_field(‘website’); ‘).’?w=200′ ?>” /> it should be <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(the_field(‘website’).’?w=200′ ?>” alt=”” /> And if this not work. I think you use the_field(‘website’) function which actually not return result you can try this code. <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(get_the_field(‘website’).’?w=200′ ?>” alt=”” />