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

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().

Leave a Reply

Your email address will not be published. Required fields are marked *