Finding another site in Wordpress Multisite by name?
Let's say I have several different sites in a WPMU (WordPress Multisite). They are:
"Bill's Site": coolsite.com/bill
"Jim's Site": coolsite.com/jim
"Edna's Site": coolsite.com/Edna
Etc...
Now let's say that on Edna's site, there is a reference to Bill's Site, and I want to programmatically get the url to it. I have the NAME of the site (Bill's Site).
I tried using get_sites():
$args = array("search" => "Bill's Site");
$results = get_sites($args);
But that returned an empty array.
I also played around with get_blog_details(), which seems better since it actually claims to be able to search specifically by blog name, but it returned a made-up URL that didn't work... Basically, using it to search for "Bill's Site" returned coolsite.com/bill%27s%20site, when it SHOULD return coolsite.com/bill.
Any thoughts or suggestions?