Created
July 5, 2014 22:16
-
-
Save plavet/fb87ad25dcecdffe0994 to your computer and use it in GitHub Desktop.
Wordpress - Checking blog id
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
<?php | |
global $blog_id; | |
if( $blog_id == 1 ) : | |
?> | |
<!--code here--> | |
<?php endif;?> | |
<?php if( $blog_id != 1 ):?> | |
<!--code here--> | |
<?php endif;?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment