Posts

Showing posts from March, 2020

WORDPRESS: Custom query to RSS feed.

Image
Had a need to create RSS feeds for several lists. Seemed a simple enough task at the time. All that was left to do was structure some kind of request thingy and move on to the next task. Initially I thought I could get away with some variation of the following example: https://domain.com/?s=&post__in=["12345","123"]&feed=rss2 // does not work As it turns out, extended search parameters, such as post__in, tag__in, etc. do not behave as expected in a query string. "Well duh." I thought, then turned to the internet for ideas. "Yo homie, you got some sauce for me?" The internet responded immediately, and after sifting through all the "use this" and "use that" plugin suggestions, I found something I could work with and probed deeper. "A custom rss feed will need to be registered," said a number of the candidates probed. "This new feed will reference a method that handles business, which include