less than 1 minute read

Deciding on WordPress as your source of truth for your micro blog is all good but how do you avoid spamming your RSS readers with your status updates meant for micro.blog, twitter, linked in et al?

The simplest way to target WordPress posts for micro blogs is to use a specific category (I call mine status). You can then configure WordPress to not include posts from this category in the default feed.

One way to exclude a category from the default feed is using a re-write rule in your .htaccess file as shared by Manton in this gist https://gist.github.com/manton/f8b6f8b391a2f3d9b419

I wanted something a bit more robust that wouldn’t break when the url format changed. Instead I wrote a custom filter that would hide the category from the default feed. To get this set up you can use the excellent ‘My Custom Functions’ plug in https://wordpress.org/plugins/my-custom-functions/

https://gist.github.com/merill/92c71ffc980a1741ba1c4cc6900a3e5c

Once you have this set up you can now use the url to your feed as the feed source at https://micro.blog using the following format http://<<domain>>/category/<<category name>>/feed/

In my case this is my feed url https://merill.net/category/status/feed/

Tags:

Categories:

Updated: