I’ve been playing around with backing up my tweets lately. At this point I’m using the Twitter Tools plugin to create a weekly digest. Since I created a Tumble-blog not to long ago to share social stuff like this I also wanted the tweets to go to tumblr. Part of this was just a way to clean up Tumblr and not create a new post everytime I tweet.
Now, having the tweets on the blog is mostly for me. I didn’t want to bombard people that are subscribed to the RSS feed with this weekly mashup of all my tweets, but still be able to have the RSS feed to send to Tumblr or for anybody that wants it.
This is what I ended up doing:
function tweetRSS123($query) {
if ($query->is_feed && !is_category()) {
$query->set(‘cat’,’-1′);
}
return $query;
}
add_filter(‘pre_get_posts’,’tweetRSS123′);