Add related entry list into Atom Feed

| No Comments

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.



Leave a comment

About Me

As a tech geek and life geek, I always like to share my experience to you, my readers.

David Yin

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.

Archives

Subscribe

Ads