Interblog Menus

A “recent comment”: from “Winslow Oddfellow II”:

bq. By the way, how did you get that InterBlog thinger on your sidebar?

That’s a good question. It’s actually kinda funny, since right now my “Avocation” blog is powered by WordPress and my “Foundation” blog is still running on Movable Type. They refer to each other with what appear to be identical menus, but they are almost as different as night and day.

To achieve the correct output in WordPress, I created an “interblog.php” file that contains the following code:

bq.. <?php require(‘./wp-blog-header.php’); ?>

<h2><a href=””>Avocation</a></h2>
<?php $posts = get_posts(‘offset=0’); foreach ($posts as $post) : start_wp(); ?>
<li id=”post-<?php the_ID(); ?>”><a href=”<?php the_permalink() ?>” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>

p. In Movable Type, I created a custom template called “”, which outputs a static file called “”. It looks like this:

bq.. <h2><a href=””>Foundation</a></h2>
<MTEntries lastn=”5″>
<li><a href=”<MTEntryLink>”><MTEntryTitle></a></li>

p. both of them get included from the other blog using nearly identical code:

bq. <?php requre (‘’); ?>

As you can see, it’s all pretty straightforward, but it took me a few minutes of head-scratching to figure it out. Hope this is useful for others who wish to refer to entries between multiple blogs.

Leave a Reply

Your email address will not be published.