views:

56

answers:

1

Looking for a variable to use to differentiate between sites in a Wordpress 3.0 Multisite installation. I saw the function "is_multisite();" in some blogs, but not sure if its supported yet. I have one theme I'd like to use on all the Network's sites, but need a way to use conditions between them.

Thanks for the help.

A: 

This article dicusses a few different techniques for determining if the site is in a Multisite installation. Below is a cleaned up version of their custom function:

function yourtheme_is_multsite() {
    global $wpmu_version;
    if (function_exists('is_multisite'))
        return is_multisite();
    return !empty($wpmu_version));
}
Pat
that seems to be determining whether its a multisite or a MU site. I already know its a Multisite. I was thinking I might be able to use the get_bloginfo('url') are a variable but it didn't work.ie.if get_bloginfo('url') == site.com else if etc...
philmadelphia