In an MU install, how do I call a users blog? Is there a code snippet that will call a users blog from any page on the site?
Thanks
In an MU install, how do I call a users blog? Is there a code snippet that will call a users blog from any page on the site?
Thanks
Call what? Content, the name...? There's get_bloginfo
The link to a persons personal blog on the mu install from anywhere on the mu platform (website). So say someone is using WordPress.com, what is the link to take them back to their own personal site even though they may be viewing another blog?
Thanks
There isn't one quite like you're thinking.
http://codex.wordpress.org/WPMU_Functions/get_blogs_of_user will list all their blogs.
WordPress.com has a custom menu which we already have in the toolbar. When you log in to your install, there's a 'My Sites' menu. That lists all your sites.
If you wanted to leverage that, though, the code is here: http://core.trac.wordpress.org/browser/trunk/wp-includes/class-wp-admin-bar.php#L23
I can give it thee old try, but the probability is 50/50.
Is there anyone who has tried this or done this on their site, and willing to share the code?
Thanks
You must log in to post.