WordPress MultiSite – How to get the Site URL from a Sub Blog

Posted by on Feb 13, 2012 in Wordpress Multi Site | 41 comments

For any site on the network you can get the sites URL from Home_url() or site_url(), but if you are on a sub-blog and want the URL of your main blog you need to use network_home_url().

468 ad

Leave a Reply