Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Detect if this is the main blog


talk2manoj
Participant

@talk2manoj

You might make use of following code

//Main blog has always id as 1, so you can write

get_header();

if($wpdb->blogid == 1) {
//do something
} else{
//do this
}

Skip to toolbar