Using site_url() but for the site before the page calling it?

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

Read More

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?

Related posts

1 comment

  1. 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 for example.com regardless of which site you call it from.

Comments are closed.