The MU forums have moved to WordPress.org

Wordpress Mu blog url (5 posts)

  1. silence
    Member
    Posted 17 years ago #

    Hi.
    I like to know the name of the variable to pass the blogid on the url.
    Thanks.
    Byron H.

  2. silence
    Member
    Posted 17 years ago #

    I'm looking on the previous version was a variable named wpblog.
    What happened to this variable?
    Where should i add it again?
    Thanks.
    Byron H.

  3. silence
    Member
    Posted 17 years ago #

    I need this variable to show feed to some readers that i'm having troubles.
    If somebody need it:
    I added this lines in wpmu-settings.php (line 115 apr.):

    $blog_id = $current_blog->blog_id;
    // added lines
    if (isset($_GET["blog_id"]))
    $blog_id = $_GET["blog_id"];
    // end added lines
    $public = $current_blog->public;

    If somebody has a better solution, thanks.
    Byron H.

  4. lunabyte
    Member
    Posted 17 years ago #

    global $blog_id;

  5. drmike
    Member
    Posted 17 years ago #

    That's the number of the specific blog, not the name. Is that what you're asking for?

About this Topic