How Does WordPress Generate Feeds?

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

So how does WordPress generate the feeds for your blog? This post explains the process of how WordPress generates its feeds.
Table of Contents
WP Engine High Performance Hosting
BionicWP Hosting

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

Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the podcast. His personal blog can be found at

Discover more from our , archives ↓

Popular articles ↓

Share Your Thoughts

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

Claim Your Free Website Tip 👇

Leave your name, email and website URL below to receive one actionable improvement tip tailored for your website within the next 24 hours.

"They identified areas for improvement that we had not previously considered." - Elliot

By providing your information, you'll also be subscribing to our weekly newsletter packed with exclusive content and insights. You can unsubscribe at any time with just one click.