Add related entry list into Atom Feed

| No Comments | No TrackBacks

I have a related entries section on individual archive of this blog.
So any old posts have relation with current post will be listed under the bottom.
You like it, me too.

Suddenly, I think I can add this feature into my Feed.
Ok. let me do it and show you how to do it.

1) Under Template Module, create a new module named as "my-feed-fun":

<h3 class="trackbacks-header">Related Entries</h3>
<ul>
<MTRelatedEntries lastn="10">
<li><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></li>
</MTRelatedEntries>
</ul>

2) In Atom.xml template, find

<$MTEntryMore encode_xml="1"$>

Add the following after it.
<$MTInclude module="my-feed-fun" encode_xml="1"$>

Save and rebuild.

Done.


Related Articles

No TrackBacks

TrackBack URL: http://www.yinfor.com/mtcgi/mt-tb-0822.cgi/1602

Leave a comment

About this Entry

This page contains a single entry by David Yin published on April 26, 2007 1:04 AM.

WPMU can not signup on IE with 404 error was the previous entry in this blog.

Install Zend Optimizer 3.2.8 on Ubuntu 7.04 Server is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.21-en

Online Tools