Latest Forever Geek Entries on your Site

For all of you readers out there who can’t get enough of Forever Geek (and who couldn’t? ;), I’m going to show you how to add the titles of the latest entries to your site using the Forever Geek XML feed.

Note: The following is for MovableType users only, since it describes how to use a MovableType plugin to parse the XML feed, and display the contents to your blog.

First off, you are going to need to download and install the RSS Feed plugin. The documentation for the plugin describes how to install it, so that won’t be covered here.

Secondly, in order to periodically rebuild the template containing the Forever Geek headlines, you’ll need mt-rebuild, which allows you to rebuild MovableType templates from the command line. Again, the mt-rebuild documentation describes how to install it, so that won’t be discussed here.

Next, you’ll want to create a new MovableType index template to store the RSS feed in. Add the following code to the template:

<MTRSSFeed file="">
<ul style="list-style-type: none;">
    <li><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a></li>

Go ahead and save and rebuild the template. However, this will only display the headlines that are currently in the feed. To keep your site up to date, you’ll need to rebuild the template periodically. You can use a utility like cron (on Unix machines, anyway) to do this (if you don’t know how to do that, ask your web host, they should be able to help you out). The following command should be executed by cron:

/path/ -mode="index" -blog_id="n" -template="Template Name"

where “/path” is the path to the directory where mt-rebuild is installed, “n” is your Blog’s ID, and “Template Name” is the name of the template you created above.

Now that the template is created, you need to include it in one of your other MovableType templates so that it shows up on your site (the sidebar of your main page could be a good place for it). To do this, open up the correct template, and insert the following where you want the entries to show up:

<$MTInclude file="filename.html"$>

where “filename.html” is the name of the fille that the new template you created above points to.

And that’s it. Go ahead and rebuild this template as well, and you should have the latest Forever Geek headlines on your site. To see how I did this, you can head over to my blog (it’s right below Search in the sidebar).

If you have any questions about setting this up, please let me know, and I’ll do what I can to help.

Have something to tell us about this article?
Let us know

or Comment Below

Gaming Trailers

More Like This
World of Warcraft | Dragonflight Launch Gameplay Trailer
Latest Trailers
Jurassic World Primal Ops | Official Launch Trailer

Got a tip?

Let us know