Title: Multisite Site Url Question
Last modified: August 19, 2016

---

# Multisite Site Url Question

 *  [ParticularlyEvil](https://wordpress.org/support/users/particularlyevil/)
 * (@particularlyevil)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/)
 * This may be incredibly stupid.
 * How do I get the url of the “main” site for my Multisite Install?
 * <?php echo get_settings(‘home’); ?> Gives me the home page of the current blog,
   not the core blog as does <?php echo site_url() ?> and everything else I’ve tried
 * I’m sure this is simple, but I can’t find the information anywhere!
 * Thanks
    Frank

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [ParticularlyEvil](https://wordpress.org/support/users/particularlyevil/)
 * (@particularlyevil)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776086)
 * Anyone?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776088)
 * It should be `get_current_site()` but I often get that and `get_bloginfo()` crossed…
 *  Thread Starter [ParticularlyEvil](https://wordpress.org/support/users/particularlyevil/)
 * (@particularlyevil)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776090)
 * I believe get_current_site gets the current site you are browsing, so in a multisite
   install, that wouldn’t be the core site.
 * I’m looking for the code for getting the core site itself.
 * Any other ideas?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776091)
 * No, I know, there’s just some insane weird naming convention for it that never
   makes logical sense for me, y’know? 🙂
 * I mean, you could do [get_blog_option()](http://codex.wordpress.org/WPMU_Functions/get_blog_option)
   and then specify the site but that’s silly.
 * *pulling out old notes and reading*
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776092)
 * AH! Thank you [@wpmuguru](https://wordpress.org/support/users/wpmuguru/)!
 * `network_home_url()`
 * Which is only mentioned here: [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories](http://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776094)
 * > I believe get_current_site gets the current site you are browsing, so in a 
   > multisite install, that wouldn’t be the core site.
 * Actually, it should be. close enough, anyway. In the code site refers to the 
   network, blog refers to what the admin area calls sites. (just for code clarification)
 * the function mentioned above is what you’re looking for tho.
 *  [luminancedesign](https://wordpress.org/support/users/luminancedesign/)
 * (@luminancedesign)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776193)
 * I’ve just used:
 * `<?php echo get_home_url('1','/'); ?>`
 * To get the main site [ID 1] – hope this helps!
 * From: [http://codex.wordpress.org/Function_Reference/get_home_url](http://codex.wordpress.org/Function_Reference/get_home_url)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multisite Site Url Question’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 4 participants
 * Last reply from: [luminancedesign](https://wordpress.org/support/users/luminancedesign/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/multisite-site-url-question/#post-1776193)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
