How do I create a feed from a search query?

Word PressUsing the basic (integrated) WordPress search, I’ve wanted to create (RSS) feeds for specific search terms. It’s actually a lot simpler then I thought and wanted to share.

Do your search (on your WP powered blog). Your URL should look something like this: http://www.somesite.com/?s=derek+jeter. In that example I did a search for Derek Jeter, on my site. But my goal is to create a feed, so I can view all stories/pages about Derek Jeter in my feed reader. Ready for this? Add &feed=rss2 to the end of the URL string. The URL should now look similar to http://www.somesite.com/?s=derek+jeter&feed=rss2

Walah! You now have your feed, from a search query.

, ,

Add your comment

tooltip