How to link to multisite-base url via php coding?
Well all know that the standard code is as follows:
PHP Code:
<?php get_site_url(); ?>
or
PHP Code:
<?php echo network_site_url(); ?>
However, i created a few sites based off of wordpress's multisite functionality.
So I have the following.
http://www.domain.com/site1/
http://www.domain.com/site2/
http://www.domain.com/site3/
http://www.domain.com/site4/
http://www.domain.com/site5/
etc...
If I place the above codes within any of the sites above, it just likes to the base domain -
http://www.domain.com/
for example -
HTML Code:
a href="<?php echo network_site_url(); ?>/about">Test Link</a>
=
http://www.domain.com/about/
How do I make it so that I get http://www.domain.com/site1/about/ ?
- - - Updated - - -
Not sure if this matters or will help, but I am using the Vantage theme. So I'm not sure if there's some type of function or call that has already been created to make this work?