Forums

[resolved] Multi Site base url question (3 posts)

  1. savantstyles
    Member
    Posted 8 months ago #

    I am looking for a way to use the bloginfo() code to retrieve the multi site base url. Say if I have the base site "/" and a sub directory site "/blog-one" and want to link to the base site url using bloginfo from the sub directory site.

    If I use:

    <?php bloginfo ('url') ?>

    in the "/blog-one" site it will link me to "/blog-one" not "/". Is there currently a way to do this without using a direct path? Thanks so much if you can help.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 8 months ago #

  3. savantstyles
    Member
    Posted 8 months ago #

    Awesome, thanks! that is exactly what I was looking for.

    <?php echo network_site_url(); ?>

Reply

You must log in to post.

About this Topic

Tags