Title: Function Reference/site url
Last modified: May 26, 2017

---

# Function Reference/site url

 *  [isabelledv](https://wordpress.org/support/users/isabelledv/)
 * (@isabelledv)
 * [9 years ago](https://wordpress.org/support/topic/function-referencesite-url/)
 * Hi! 🙂
 * Is there anyway i can use “site_url” for custom link on the frontpage?
    (in case
   i change host not to mess all the links) And if yes, how should i write it down?
   For instance. I want to go to the page: “[http://myurl.com/category/surgery/&#8221](http://myurl.com/category/surgery/&#8221);
 * Thanks so much 🙂

Viewing 1 replies (of 1 total)

 *  [congthien](https://wordpress.org/support/users/congthien/)
 * (@congthien)
 * [9 years ago](https://wordpress.org/support/topic/function-referencesite-url/#post-9172157)
 * Hi [@isabelledv](https://wordpress.org/support/users/isabelledv/),
 * Sorry but your couldn’t paste the PHP syntax in html code on the frontpage. There
   is no way and you have to put site url manually. In case you change host, you
   can use this plugin to replace :
    [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/)
 * Hope it helps!

Viewing 1 replies (of 1 total)

The topic ‘Function Reference/site url’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/onepress/2.3.18/screenshot.png)
 * OnePress
 * [Support Threads](https://wordpress.org/support/theme/onepress/)
 * [Active Topics](https://wordpress.org/support/theme/onepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/onepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/onepress/reviews/)

## Tags

 * [site_url](https://wordpress.org/support/topic-tag/site_url/)

 * 1 reply
 * 2 participants
 * Last reply from: [congthien](https://wordpress.org/support/users/congthien/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/function-referencesite-url/#post-9172157)
 * Status: not resolved