Is there a way to exclude a post from all of WordPress’ RSS feeds (the default one as well as tags, categories, and search feeds)?
Leave a Reply
You must be logged in to post a comment.
Is there a way to exclude a post from all of WordPress’ RSS feeds (the default one as well as tags, categories, and search feeds)?
You must be logged in to post a comment.
Assuming you do not want to use plugins like THIS ONE or THIS, you have many ways :
One is to assign a category for the posts you would like to exclude and then you can just change the URL of the RSS link like so :
You can also FILTER with a function :
The point is that you will need to assign SOMETHING (tag, custom field, category) to identify what to exclude , assuming that you do not want always to add the ID to exclude from the query.
The easiest is by category as demonstrated above .
** Edit I **
Just for the sake of it – (I still recommend the cetegory method) r
Even if I dislike custom-fields when they are overused – this is another way that change the query by assigning a custom field :