Merging your blogs
UPDATE: Multiblog 1.1 has been released which fixes bugs with the GlobalListings. I have updated the tags in this tutorial to correspond to MultiBlog only.
Have you got two or more blogs that you would like to 'merge.' By merge I mean show all entries on one page, chronologically and inline - for a greater understand take a look at my blog. The front page shows entries from the main blog plus the sideblog - the sideblog entries are formatted differently, the little bars !
The plugins you will need are:
* MultiBlog
* GlobalListings
Multiblog does have the GlobalListings plugin built into it, but at the time of writing this tutorial that section of the plugin didn't work. So I am using MultiBlog for the rebuilding !
Assuming you want to merge your sideblog and main blog and are editing your main blog's index templates, you will need to setup MultiBlog such that posts from your sideblog will rebuild indexes in the main blog on entry save. You will also need to make sure that the main blog has access priviligies to the sideblog.
The merging process is actually quite simple. In your Main Index template, search for code similar to
<MTEntries>
...
</MTEntries>
and replace it with
<MTMultiBlogEntries include_blogs="1,5" lastn="15">
..
</MTMultiBlogEntries>
Of course you will need to change the numbers to suit your install and how many entries you want to display. To get the blogid, whilst in the menu of the blog check the address bar and somwhere you should see &blog_id=x. The x part is your blog id.
From here you have a choice. Either you can leave it as it is and all your entries will be formatted in the same way or you could have separate stylings for your main blog and sideblog. The easiest way to do this is to use <MTMultiBlogIfNotLocalBlog>..</MTMultiBlogIfNotLocalBlog> tags for styling your sideblog and <MTMultiBlogIfLocalBlog>...</MTMultiBlogIfLocalBlog> tags for your main blog. Basically you just wrap the HTML design you want for each blog with those container tags.

David H. Sundwall said:
on Aug 9, 2004 9:18 PM | Reply
Thanks!
I have been looking for a way to do this for weeks but everything looked way complicated. I wondered if MultiBlog could do it but wasn't sure if it could integrate by date. I didn't know about the MTGlobalEntries tag.
You and elise are doing a tremendous service!
Arvind Satyanarayan said:
on Aug 10, 2004 2:55 PM | Reply
Hi David, glad you liked it. Until David Raynes - author of the plugin - fixes MultiBlog you will need to use the MultiBlog/GlobalListings combo. Once it is fixed however you can use MultiBlog to do it all !
David H. Sundwall said:
on Aug 13, 2004 10:36 AM | Reply
I don't know if this is better suited for here, "Ask Arvind," or possibly David Raynes.
As I understand it, GlobalListings does not support entries with their category attribute. Perhaps this is too ambitious but I would like to incorporate two sideblogs into my main blog but the side blogs are set up differently. I would need to incorporate each sideblog in a different manner that the MTIfGlobalBlog and MTIfNotGlobalBlog tags will not support as I understand it.
Is there any way in my main blog to distinguish entries from the two side blogs? Better yet by category? Should I request this from David Raynes? Sorry for the many questions but I love this blog and your service.
Thanks.
Arvind Satyanarayan said:
on Aug 13, 2004 11:26 AM | Reply
Hi David, I've been trying trying to play around with Compare and GL to see if I can style entries from different blogs depending on their IDs. But currently I'm failing. If anyone knows how this would be possible please do email me or leave a comment here but your best bet would probably be ask David Raynes !
Mariann said:
on Aug 22, 2004 3:14 AM | Reply
Would you be willing to post some sample code for the styling portion of the MTIf...Global part of this process? I'm not quite sure where to place those tags in relation to the HTML/CSS specs and the rest of the MT tags.
Mariann said:
on Aug 22, 2004 3:33 AM | Reply
Ooh, I got it!
Katherine said:
on Mar 2, 2005 1:08 AM | Reply
This plugin doesn't seem to work on Category archives. My main blog ended up with 3000 entries so in order to make it faster to rebuild, I moved the past 3 years onto it's on blog. I tried to use every method out there - MultiBlog, GlobalListings, OtherBlog - but none of them work. The entries either rebuild and show nothing, or they don't rebuild at all.
I've been hacking around but surely someone has done this already. Any help?
EricTLarsen said:
on Mar 23, 2005 9:06 AM | Reply
hi.
not sure how to get my sideblog to conform to my main blog's css.
belindasuperstarr said:
on Jul 6, 2005 10:37 PM | Reply
I am trying to pull entries from a specific category on blog #1 and all categories on blog #2 into a sideblog on blog #1, but I keep getting rebuild errors that say there is not a "catgory 1".
Is it not possible to specify the categories to pull entries from when using MtMultiBlog?
iweimer said:
on Nov 6, 2005 2:43 AM | Reply
Hi there. I've been reading your site for a while now and I would like to ask a question. I had an old blog which I backed up and stopped using a year ago, it was written under MT 2.64 (?). I've since started another blog and was wondering how I could get all my old entries into my new blog?
Andy King said:
on Nov 25, 2005 8:23 PM | Reply
hi all, i too am trying multiblog to merge posts with same category from multiple blogs. no joy yet even with multiblog 1.99a. here is the code i use in the categories archive page:
<MTMultiBlogEntries include_blogs="1,2" category = "<$MTCategoryLabel$>" >
the syntax for the category argument is off, since i get " > before each post. also ALL entries are listed on the category pages, not just those for that category. any ideas?
Andy King said:
on Nov 28, 2005 6:31 PM | Reply
Has anyone gotten yearly archives to work with multiblog? I'm looking to create separate pages for 2005 2006 2007 etc with the month and posts, one page for each year, using multiblog.
suchi said:
on Jan 19, 2006 9:57 PM | Reply
I tried to combine the RSS feeds of my blogs using MultiBlog, but it is just not working. Here is my code <MTMultiBlogEntries includeblogs="3, 14, 23" lastn="10"> <item> <author><$MTEntryAuthor removehtml="1" encodexml="1"$></author> <title><$MTBlogName$>: <$MTEntryTitle removehtml="1" encodexml="1"$></title> <description><$MTEntryBody encodexml="1"$></description> <link><$MTEntryPermalink archivetype="Individual"$></link> <pubDate><$MTEntryDate formatname="rfc822"$></pubDate> </item> </MTMultiBlogEntries> But this returns me the RSS of just blog id 3, and nothing of the other 2 blogs. Any help please...
suchi said:
on Jan 19, 2006 10:06 PM | Reply
this is to follow up my last comment the solution was to remove the blanks between the blog ids. so it shud be <MTMultiBlogEntries includeblogs="3,14,23" lastn="10"> and not <MTMultiBlogEntries includeblogs="3, 14, 23" lastn="10"> Thanx David Rayners for clearing that up.
Gregg Davis said:
on Oct 31, 2006 1:36 AM | Reply
Hi Arvind,
Have you heard of using multiblog to combine entries from one blog into another, but just from a certain category? I'd like to use Multiblog to manage more than one blog, but have just one category from each of my other blogs appear as syndicated content on the main blog. Thanks!
Daniel said:
on May 6, 2008 12:14 AM | Reply
I've been trying to combine blogs into a single RSS feed using MultiBlogs (on MT 3.35). For some reason, it is pulling posts from a blog that I am not evening including in the MTMultiBlogEntries tag, i.e. I have the tag:
MTMultiBlogEntries includeblogs="2,3,4,13" lastn="10"
but it is only showing posts in the feed from a blog that has the id=12. Can anyone shed some light on how to use MultiBlog (or some other way) to combine multiple blogs into a single RSS feed?
nugcigarrorge said:
on Oct 1, 2008 11:33 AM | Reply
Hi all! Nice site!
G'night
Flillessito said:
on Oct 10, 2008 10:05 AM | Reply
Hello. :) The natural photo of the new arrival, taken by Emma Tallulah's dad, Bye.