[resolved] Display name of blog with post on Network site? (2 posts)

  1. deanclayton
    Posted 4 years ago #

    I've set up multi site and having posts displayed on my "network site" using the excellent http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/ plugin.

    but I need to tweak things a little.

    On the network site, I'd like to display the name of the site that the post is from

    for example:

    Title: Hello World
    Site: Bubble Fun
    Category: Fun Stuff

    Title: Hi de Hi
    Site: Carry on Camping
    Category: Fun Stuff

  2. deanclayton
    Posted 4 years ago #

    Sometimes I really should do better searching! Found the answer in another support ticket:

    $org_blog_id = get_post_meta ($post->ID, '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>';

    now to style it ;p

    THe orginal support ticket that mentioned this was :http://wordpress.org/support/topic/plugin-wordpress-mu-sitewide-tags-pages-displaying-blogname-in-sitewide-post-headlines?replies=12

Topic Closed

This topic has been closed to new replies.

About this Topic