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! 🙂
Related Posts:
- How to disable a network enabled plugin for just one site?
- $wpdb->base_prefix not get parent site prefix in multisite
- what are pmxi tables? [closed]
- Issue with Custom Roles in Multisite
- Restrict Admin Capabilities in MultiSite
- Force plugin to be activated only from multisite network dashboard [duplicate]
- Delete sites in wordpress multisite (not suspend)
- Multisite 404 errors and non-www redirecting to home page
- Get first_name and last_name on user_register hook
- User registration on subsite in multisite configuration
- Multisite, turn off “create new site”
- Hard Code Pages into a Theme for a Network (multisite) Installation
- Allowing logged in users to comment without moderation across a multisite installation
- Redirect all users, except network administrators, from the main site to a subsite
- How to get the via url (or site name) on a wordpress network’s home page?
- Multisite with entirely different domains?
- Testing Multisites with vagrant or Can I use multisite with only an IP address (without domain name)
- How To Modify New Sub Blog Immediately When Super Administrator Creates It?
- Can you set up a wordpress (multi-site) network to work across multiple hosting accounts?
- No Network/Super admin after enabling Network
- Creating a Post form outside of the Admin
- How can I create a multisite global tag cloud?
- Create New Site (multisite); can’t get subdomain to work
- Possible to create a multisite network where the main site is non-WP?
- How to Run Code Before a New Site is Created on MultiSite for Validation
- How to use JSONP to make AJAX request to different site on network
- User registration on sub site
- Override database config for WordPress multisite
- ‘Remote Login’ with MultiSite Domain Mapping still forcing users to login to all blogs individually?
- Multiple WP Sites Same Server – Share WP Base?
- Bootstrapping WordPress MultiSite Outsite of WordPress – No $wpdb
- Poor performance on multisite install
- Super admin access to a forgotten WP instance?
- How to search users globally on a multisite install?
- Permalinks not working using wordPress Networking with custom post types
- Auto Redirect after login
- Site kit Google Analytics setup giving Error: {“error”:”invalid ‘redirect_uri'”}
- All pages have 302 redirect, which I can’t remove
- Can is_page and is_front_page both be true?
- Iframe being removed only for some users when publishing a page
- Start with multi-site feature now or later?
- Adding new sites to Multisite won’t register in Dashboard
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- WordPress Multisite with Addon Domains (not parked domain) [closed]
- Blocks Rest API rest_cannot_delete
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Multisite with different domain names on different servers
- WordPress 4.5+ Multisite Domain Mapping
- Redirect One Multisite to Another
- Multisite Installation is all the same site
- Some doubts related to Multi Installation → Media of one of the site can be used on the others?
- Redirect to localhost after installing Multisite on server
- single sign on for wordpress multi site
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- WordPress multisite install on two subdomains, each belonging to a separate domain
- Navigation menu not being assigned Theme Location
- Moving wp-admin folder to a different host in a multisite environment
- Issue with Multisite and SSL
- How do I remove the “http://” from network_site_url?
- is_main_site() Always Returns True
- List recent 25 blogs across the network
- Mass Update Broken Links
- Performance disadvantge of second installation instead multisite feature?
- What is the simplest way to disable multisite leaving one of the sites only?
- What does multi-site WordPress application mean?
- Add wordpress multi sites with different port number from 80
- Create website with a switch between private and business [closed]
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- How to make my third multisite blog start with id 1000?
- Forward and mask a WordPress website
- Filter meta request
- Subdomain is not working
- How to automatically create an index of child sites at the root url for a multisite installation?
- Does switch_to_blog support array or other ways to show all posts on a network install?
- How to make subdomain and muti-site but wordpress isn’t in root?
- Migration: previous URL redirection after migrating
- Add www to the Root Site in WP Multisite Network
- Multisite problem with unexisting paths to CSS etc
- Getting stylesheet error after setting subdomain to false in multisite
- URLs for (MultiSite) link images are always relative
- Moving wordpress multisite to new domain
- How to allow mixed case characters in multisite site name?
- Separated Theme file on multi site network in subdomain
- Which action hook to update custom field at network/site-info.php in multisite on update site info
- How To Change the URL of a WordPress Multisite
- Can’t import posts in multisite
- User registration problem on multisites web
- Site w/ Addon Domain doesn’t show CSS
- WordPress MU – Creating a site takes ages
- Default sub-pages on WordPress Multisite
- WordPress Multisite – Questions about select all posts from all network sites
- Multi site and media uploader
- There is no featured image in my post in wordpress multisite theme [closed]
- Comment reporting for Multisite
- How to display the most popular posts of all the blogs in a mu setup? [duplicate]
- WordPress MS wp-admin/includes/post.php error with shortcode generator
- Subdomain add comment redirect to 404 not found page iis server
- All links to images are broken in a subdomain multi site environment
- Redirect to Multisite site 2 if site 1 has a setting