In a position at a previous job, I needed to vary the number of posts that the WordPress RSS feed returned. This can be configured in your WordPress settings, but it doesn’t seem to be configurable per request. For example, I wanted to call a URL such as
http://website.com/?feed=rss2&posts_per_page=4
This would hopefully return me the latest 4 blog posts. However, WordPress doesn’t allow you to do this. It only reads its own option for the number of posts per feed.
Read the rest of this entry »