I can't seem to find a convenient WPMU (Wordpress Multisite) function for getting the blog's path.
For instance if it is www.example.com/myblogpath/
I'm simply looking to get myblogpath
.
Has this been implemented yet?
I can't seem to find a convenient WPMU (Wordpress Multisite) function for getting the blog's path.
For instance if it is www.example.com/myblogpath/
I'm simply looking to get myblogpath
.
Has this been implemented yet?
To get the path, I simply did a find-replace on some globals ...
define('ss_blog_path', str_replace(array($current_site->path, '/'), array('', ''), $current_blog->path));