DISQUS

Jangro.com: Excluding Posts from Your Wordpress Feed

  • Scott · 1 year ago
    Good question Vlad. I'm not sure, but I think you can get feeds on specific categories from wordpress. I'd have to research that a bit.
  • brackets · 1 year ago
    Can't you set up seperate feeds for seperate categories? There may not be a plugin to do it easily, but it should be doable.
  • design hotels · 1 year ago
    @Vlad glad you like my name ;) You've probably right about the 404 page... I'll try this on a test blog.
  • Jessica · 1 year ago
    I didn't want to exclude a whole category from my feed, so I made a tag to add to entries I didn't want in the feed instead. I changed "cat" in the code you gave to "tag" (and the ID, obviously), and it works perfectly - thank you for that!
  • bay of islands nz · 1 year ago
    Nice trick, thanks for that, I'll be using that in my sites to lop off spurious content from the feeds...
  • Nico · 1 year ago
    Has anyone seemed to figure out how to fix the problems of reversed order when using this function? It seems that when I include this in functions.php all my posts are shown in reverse chronological order.
  • Speed Reader X · 11 months ago
    Thanks for this. It is what I'm looking for!
  • BS · 8 months ago
    That works to remove undesired categories from the main feed, but it prevents you from generating individual feeds for individual categories.

    For example, our main site feed is at:

    http://www.mysite.com/index.php/feed

    We also had individual category feeds available on each category page using somthing like the following:

    http://www.mysite.com/?cat=8&feed=rss2

    Those individual category feeds now all display the main site feed. I'm guessing that's because the code you provided sets the categories to display. Is there any way to alter the code so that it only applies to the main site feed?