I am trying to make things work like where any post attachment image will generate embed code automatically.
Example: If I upload and add two images 1. 250x150 2. 600 x 160 and insert into post. Now that image information I want to auto put into embed code like below.
<div> <a href="link url" title="title text" target="_blank"><img src="$image_url" width="$image_width" height="$image_height" alt="$image_name" /></a> </div>
where $variable is the data of the attached image/s.
So above code our team member can use the embed code to display image.