yangers101
Member
Posted 5 months ago #
I have WPMU 2.8.4a. Does anyone know how to make it so that http://www.myurl.com/blog shows the logged in user's blog(s). Currently /blog just shows the admin's blog. I would like to make it so that when the user logs in and clicks the "Blog" tab (/blog), he/she can see his/her blog. Your help would be much appreciated!!!! Thank you!!!
global $current_user;
$primary_blog = get_active_blog_for_user( $current_user->ID );
$url = 'http://'.$primary_blog->domain . $primary_blog->path.';
Then your blog tab will have something like this:
<a href="<?php echo $url; ?>">Blog</a>
yangers101
Member
Posted 5 months ago #
Hi dsader, thanks for your comment. I'm kind of a novice at coding...Could you explain which file I would put the code? Thanks!
Whatever file generates your "blog" tab. How could I know what your template files look like?
Your blog header is in the THEME template files.
Sorry, yangers101 my post sounded rude. My bad.