I have a blog on a multi blog wordpress site and im using site_url() or home_url()
The url it links is like www.example.com/name
I want it to link to www.example.com (not the /name!) everytime.
Is there a way to link it to the page like that?
I have a blog on a multi blog wordpress site and im using site_url() or home_url()
The url it links is like www.example.com/name
I want it to link to www.example.com (not the /name!) everytime.
Is there a way to link it to the page like that?
Comments are closed.
network_site_url
will get the URL of the main site in your network.So if
example.com
is the main site,network_site_url
will return the URL forexample.com
regardless of which site you call it from.