How to get blog name, when using WordPress Multisite

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! 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)