Add related entry list into Atom Feed

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>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.

<$MTEntryMore encode_xml="1"$>

Save and rebuild.
Done.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *