Multisite get_home_url(); – Getting URL for current site


What would be the replacement for get_home_url() when using a multisite? For example, if I have one theme installed across several sites, and within the theme there are links that need to be specific to the current site.

On my single install, using get_home_url(); would give me, which was great, and if I moved the theme to a different domain, nothing would be affected. But when I’m using the same theme on a multisite, get_home_url(); gives me no matter which site I am currently on. What I would need for each one is Is there a different tag to use in this case?



Can’t answer my own question yet, but <?php echo get_bloginfo( 'url' )?> was exactly was I was looking for.

Tim McClure 4 days 0 Answers 6 views 0

Leave an answer