Created
August 13, 2013 20:34
-
-
Save cliffordp/6225411 to your computer and use it in GitHub Desktop.
From http://lauragentry.com/blog/2010/08/02/applying-one-theme-to-multiple-blogs-in-wordpress-multisite/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$current_blog_id = $GLOBALS['blog_id']; | |
if ($current_blog_id == 1) { | |
// for site 1 | |
} elseif ($current_blog_id == 2) { | |
// for site 2 | |
} else { | |
// for rest of sites | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment