WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a wordpress multisite installtion with 5 sites within, the multisite is called Lifestyle

  1. Homes
  2. Cars
  3. Architecture
  4. Holidays
  5. Communities

I am trying to get the blog name, for each blog when viewing in my theme, every function I use returns 'Lifestyle'.

I have tried;



global $current_site; var_dump(get_current_site_name($current_site));


none of the strings or objects returned contain the blog name, they all contain the site name "Lifestyle" can anyone offer any advice...

share|improve this question
social-ink.net/blog/… this looks interesting.... anything you can work with? Wait, I might be misunderstanding.... you are trying to list each site ON said site, or sites on the main site? – Rev. Voodoo Apr 21 '11 at 11:54
up vote 9 down vote accepted

This is what you need:

global $blog_id;
$current_blog_details = get_blog_details( array( 'blog_id' => $blog_id ) );
echo $current_blog_details->blogname;

Have a nice multisite! :)

share|improve this answer
'name' - Returns the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table. codex.wordpress.org/Function_Reference/get_bloginfo – Ashok KS Jul 3 '14 at 7:15

You can also simply use (Verified with WordPress 4.3.1)

global $blog_id;
$current_blog_details = get_blog_details( $blog_id );
echo $current_blog_details->blogname;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.