Forums

Blog link (5 posts)

  1. Famous
    Member
    Posted 11 months ago #

    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

  2. Call what? Content, the name...? There's get_bloginfo

    http://codex.wordpress.org/WPMU_Functions/get_bloginfo

  3. Famous
    Member
    Posted 11 months ago #

    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

  4. 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

  5. Famous
    Member
    Posted 11 months ago #

    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

Reply

You must log in to post.

About this Topic

Tags