The MU forums have moved to WordPress.org

MU Title Slug (3 posts)

  1. dwcouch
    Member
    Posted 14 years ago #

    Is there really no function to return the 'title slug' in MU?

    I'm working on themes that have slight modifications that I'd like to 'hinge' on the blog title slug. as in: http://www.domain.com/blogs/title-slug

    This comes close:
    get_bloginfo('wpurl');
    But I don't need (or want) the whole url - just the slug.

  2. andrea_r
    Moderator
    Posted 14 years ago #

    If you're on the current blog, get the path.

    $current_blog->path

  3. dwcouch
    Member
    Posted 14 years ago #

    Hey thanks for the response.

    On my site root which has no 'slug' it returns /blogs/
    on a blog it doesn't return anything... ?

    ... well it seems to depend on where in the template i put it. In the footer - '/blogs/title-slug' but from sidebar ''

    Somethin is squirrely...
    Thanks again for that - I'm getting closer!

About this Topic