Skip to:
Content
Pages
Categories
Search
Top
Bottom

Find blog_id


  • cindyclemens
    Member

    @cindyclemens

    I am new to buddypress and I cannot for the life of me figure out how to find the blog_id # for a specific blog.

    I am running WP 3.1 and BP 1.2.8

    I need the actual id # for a blog. (The main blog actually).

    I need to exclude it from the activity feed. I found how to do it, but need the id # to get it to work and that is the part I can’t figure out.

    Thank you for any help,
    Cindy

Viewing 2 replies - 1 through 2 (of 2 total)

  • perpetualrevision
    Member

    @perpetualrevision

    Did you try using 1? That’s always been the blog ID for the main blog in my sites in WPMU 2.* and WP 3.1


    shanebp
    Moderator

    @shanebp

    global $blog_id;
    echo $blog_id;

    Or
    In WordPress 3.1, your $blog_id can be found by navigating to the “Network Admin > Sites” page and hovering over the blog in question. You should see a link that resembles this:

    http://example.com/wp-admin/network/site-info.php?id=1

    Your $blog_id, in this instance, would be 1.

    For WordPress 3.0, the $blog_id can be found in the “ID” column of the “Super Admin > Blogs” page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Find blog_id’ is closed to new replies.
Skip to toolbar