The MU forums have moved to WordPress.org

Var for blog subdomain slug? (2 posts)

  1. croakingtoad
    Member
    Posted 14 years ago #

    I have a blog set up to use subdomains and I am wondering if there is a function or var in WPMU to grab that subdomain slug value?

    ie:
    http://www.foo.com/rocker/
    http://www.foo.com/toad/

    How do I grab the value of "rocker" and "toad" for the blog the user is currently looking at?

    Thanks!

  2. croakingtoad
    Member
    Posted 14 years ago #

    Discovered/figured it out -

    <?php echo $current_blog->path; ?>

About this Topic

  • Started 14 years ago by croakingtoad
  • Latest reply from croakingtoad