Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 839101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:24:45+00:00 2026-05-15T05:24:45+00:00

I have a network of blogs that link to each other. The problem is

  • 0

I have a network of blogs that link to each other. The problem is when I want to get the primary blog’s domain. I need it for things like the the target of the logo when clicked.

I can’t seem to find a function in WPMU the retrieves this. I can see the value I want in the wp_site table. I could easily get it with $wpdb, but its a bit over kill, and if there is a function that can get the value already, then I want to use it.

I would prefer a solution that does not use a hardcoded ID as this can change if the root blog is deleted and/or replaced.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:24:46+00:00Added an answer on May 15, 2026 at 5:24 am

    How about get_blogaddress_by_id(1)? This would get the URL for the blog with ID 1 (which is the primary blog by default).

    Check out wp-includes/wpmu-functions.php for similar functions.

    Note, this might all change with the codebase merge in 3.0.

    UPDATE

    If you want the site install blog, use the global object $current_site ($current_site->ID). If you want the ‘dashboard blog’, use get_site_option('dashboard_blog').

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a network of blogs that I want to be able to do
I have a social network that allows users to write blogs and ask questions.
I have a social network that allows users to post blogs, ask questions, and
I have a social network that has a blogs and questions section. There are
I have a social network that allows people to ask questions and write blogs.
I have a network software which uses UDP to communicate with other instances of
All other applications I've written have been network/web apps where I've used an SQL
I have around 20 tableview cells that each contain a number (2-5) thumbnail sized
I have a social network so a blog is only you could say a
I have a network of about 200 blogs (Wordpress Multisite), and all of them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.