Too many echo
s. This:
echo '<img src="https://wordpress.stackexchange.com/questions/56498/<?php echo $image_attributes[0]; ?>" />';
Should be this:
echo '<img src="' . $image_attributes[0] . '" />';
Too many echo
s. This:
echo '<img src="https://wordpress.stackexchange.com/questions/56498/<?php echo $image_attributes[0]; ?>" />';
Should be this:
echo '<img src="' . $image_attributes[0] . '" />';