Who’s the author?
If it’s the post author that’s one thing. If it’s the logged in user, that’s another.
thanx for your response ipstenu.
for example, see http://kompasiana.com
In every post has an anchor text which linked to the author blog homepage. It’s like http://kompasiana.com/dinabasrul (my homepage).
I want to make a multisite like http://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>';
} ?> |