Variable for main site url
-
May seem stupid but – is there a variable to reference the main site’s url (of a network installation).
Have tried
<?php?get_site_url();??>
or<?php?get_site_url(1);??>
or<?php?get_site_url(?$blog_id(1));??>
or<?php echo home_url(); ?>
as in
<a href="<?php echo home_url(); ?>"
but they either are incorrect or else return the url of the site you are on not the main site’s url.
Any ideas ?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Variable for main site url’ is closed to new replies.