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.

Buy me a coffee.
Your support help me to cover the cost of blogging. Thank you.
  • Archives