This post is secret; you can only find it via my RSS feeds (and places which syndicate them). It's okay to talk about it or link to it, though. Thanks
for being part of RSS Club!
Matthias went on to mention a snippet of WordPress code shared by Jeremy Herves, which he uses
to achieve a similar thing but with a randomly-selected one of eight different messages of thanks:
Like Jeremy, I was inspired by Kev Quirk and have been appending a message onto my posts in RSS feeds for a while. My approach is a little different, though:
Rather than a random number, I use the post ID modulus the number of random messages to choose which “random” message to select. This means that a given post
has a consistent message, which minimises the risk that a post will be detected as having been “changed” by a feed reader, and it also helps to reduce “runs” of the same
message after multiple posts in a row. I have a prime number of random messages to reduce the risk that patterns in my posting (e.g. a series of posts, without drafts, each with
exactly one image, like my recent and ongoing Bleptember series) end up introducing a predictable pattern to the messages.
I only use the random message if a specific one is not provided via postmeta. I’ve got a metadata field in my editing interface which, if filled, overrides the random
message. This lets me put a specific or targetted message in, usually/especially if I’m talking specifically about RSS-related things!
Here’s the code I use to inject the messages into my RSS feed:
Regardless of whether or not you love RSS as much as I do, thanks for reading my blog via RSS!
1 comment
Spencer says:
Honestly, I find the random messages unnecessary. RSS is already clearly the best way to consume a blog; I don’t need an automated pat on the back for it. I do like the custom
messages though, which fit with the “RSS club” concept of more content for RSS subscribers.
Honestly, I find the random messages unnecessary. RSS is already clearly the best way to consume a blog; I don’t need an automated pat on the back for it. I do like the custom messages though, which fit with the “RSS club” concept of more content for RSS subscribers.