title: dynamic image link in php (wordpress)
body: <p>I am building a site on my test server, that will eventually be migrated to its own domain when it is finished.
  For this reason i am trying to find a way to dynamically link to certain images, so i do not have to change the links when i move the site.</p>
  
  <p>Is there a way to use php to dynamically pull the site url (of whatever domain the link is currently on) and then set the relative path to the image file?</p>
  
  <p>I tried the following code without success:</p>
  
  <pre><code>&lt;img src="&lt;?php bloginfo('url');?&gt;/fft/wp-content/uploads/2014/05/rogue-fitness-logo.jpg"&gt;
  </code></pre>
  
  <p>any suggestions?</p>