• Please help me, i cannot find the tutorial about the code to get user blog link. I want to make an anchor text at the post of main blog, which linking to the author blog homepage. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Who’s the author?

    If it’s the post author that’s one thing. If it’s the logged in user, that’s another.

    Thread Starter Basrul Yandri

    (@basrul)

    thanx for your response ipstenu.
    for example, see https://kompasiana.com
    In every post has an anchor text which linked to the author blog homepage. It’s like https://kompasiana.com/dinabasrul (my homepage).

    Thread Starter Basrul Yandri

    (@basrul)

    I want to make a multisite like https://kompasiana.com. Every post of all blog is automatically display in main site. I use plugin MU Sitewide Tags Pages.
    But the problem is i cannot make an anchor text in main site, which is linked to the author’s blog address.

    Can you give the template tags or another code for this?
    Thanx before

    Each post aggregated in the main blog from the MU Sitewide Tags Pages should have a blogid with its post_meta so something like this should give you the blogname and siteurl of a post in your loop:

    | <?php $postid = get_the_id();
    $org_blog_id = get_post_meta( $postid, 'blogid', true);
    if($org_blog_id) {
    $blog_details = get_blog_details($org_blog_id);
    echo ' from <a href="' . $blog_details->siteurl . '">' . $blog_details->blogname . '</a>';
    } ?> |

    Thread Starter Basrul Yandri

    (@basrul)

    Thanx a lot david.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Get user blog link’ is closed to new replies.