WordPress

How Does WordPress Generate Feeds?

So how does WordPress generate the feeds for your blog? This post explains the process of how WordPress generates its feeds.
Table of Contents

If you purchase through a link on our site, we may earn a commission.

So how does WordPress generate the feeds for your blog?

By default WordPress gives you some settings related to syndication. Here’s a screenshot of these settings:

feed options

The first option sets how many feed items your feeds page should show. Pretty straightforward stuff.

The next radio buttons let you decide whether your feed should show a summary of your post or the full content.

When you enable only the summary, WordPress will only populate the <description> tag in the resulting RSS XML file.

When you enable the full text option, WordPress will populate the <description> and the <content> tags in the RSS output.

You’re probably asking how WordPress generates the text for the <description> tag. Good question. First it checks whether you have created any manual excerpts and uses those. If no manual excerpts are found, it will use the get_the_excerpt() function which in turn uses the wp_trim_excerpt() function to return a summary of 55 words. If the string is less than 55 words, then the content will be returned as is.

If you enjoyed this post, make sure to subscribe to WP Mayor’s RSS feed.

Jean Galea is an investor, entrepreneur, and writer. He is the founder of WP Mayor, and the plugins WP RSS Aggregator and Spotlight. He also runs the Good Life Collective. Connect with him on X or visit jeangalea.com.

If you purchase through a link on our site, we may earn a commission.

Latest Articles from the Blog

Stay updated with WP Mayor's newsletter.

Discover the best and latest tools and services in WordPress every month.