> For the complete documentation index, see [llms.txt](https://docs.feedotter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.feedotter.com/automations/features/multiple-feeds/merging-feeds.md).

# Merging Feeds

Rather than the typical "loop" use case, you can also merge feeds into one.  This automatically de-duplicates the content by URL and orders for the \<pubDate> field newest > oldest.

```
<h2>Combine Posts From All Feeds. De-duped and sorted by Published Date</h2>
 [% for post in feedMerge([feedotter.posts, feedotter.posts2]) %]
<p>
[[post.post_date | date("n/j/Y")]] == [[post.post_title]]<br>
[[post.post_url]]  
    </p>
    ###
[% endfor %]
```
