Support » Fixing WordPress » get_settings(‘siteurl’) Help! (relative links)

  • I recently changed my blog from having all the files in the same place to having the blog homepage in a different directory than the wordpress files. (my index.php is in the exact same place but the rest of the files have been moved)

    I had wanted all my links to be relitave so if I switched servers they would not break. In order to do this I used the <?php echo get_settings('siteurl'); ?> function and put it in front of all my posts.

    However now that I have switched that peice of code displayes a link to the directory where the wordpress files are.* not to my blog homepage. What PHP code could I use to refrence the SQL table where my blog URL is ?

    If that is not posible how could I set up a hook to access it? Any help would be appreciated.


    * as opposed to

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_settings(‘siteurl’) Help! (relative links)’ is closed to new replies.