title: WordPress relative links for regular non image links
body: <p>Is there a way to do normal links in WordPress (not image source links) in a "relative" manner??</p>
  
  <p>Im doing custom site in WP and some portions of the site, for example an image link that when clicked, leads to a specific dynamically built WordPress page, i always link them absolutely.</p>
  
  <p>So for example, if the <strong>website wordpress page</strong> i want link to is <strong>page_id=39</strong> and the site is <code>XYZ.com</code> then my image link would be <strong></strong> etc...</p>
  
  <p>Problem with this is that when i take the site from a test server to the live server i have to manually go in again and redo ALL the manual links.</p>
  
  <p>Unlike the image relative links which look something like this <code>&lt;img src="&lt;?php bloginfo('template_directory');?&gt;/image here"/&gt;</code> where this relatively looks for physical image somewhere on the site, the WordPress pages don't exist in the traditional sense of an actual page.php etc so, how can i get around this, is there some function i can employ that will get me using relative links/path builder to actual dynamic wordpress pages so that i dont have to manually/absolutely link something? </p>
  
  <p>Thanks in advanced.</p>