use system script advertising in wordpress multisite

I have write : <?php $blog_id = get_current_blog_id(); ?> <?php if( 1 == $blog_id ); ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php elseif( 2 == $blog_id ): ?> <div id=””><script src=””></script><script src=”” ></script></div> <?php else: ?> Default script <?php endif; ?> It correct !?

How to get a current post’s blog id

Here’s a quick way you could do it, though there are quite likely easier/better ways to do it. This is just what I can think of at the moment. Add a quick function to functions.php that will store the blog ID in the post meta. Then when you need to check where the post came … Read more