Ready to get started?Download WordPress


Exclude category from feed but not on the cat feed (1 post)

  1. henri
    Posted 3 years ago #

    HI all do you know how I can exclude some cats from the main feed and still have a feed for the category excluded?

    Assuming category 7 is named "test"

    use this :

    // Exclude category from feed
    function myFilter($query) {
    	if ($query->is_feed) {
    return $query;

    And still have http://mydomain.com/category/test/feed ?

    Thanks all

Topic Closed

This topic has been closed to new replies.

About this Topic