Ultimate Category Excluder
Need to exclude a category from main feed but allow it to work in its own feed (2 posts)

  1. AnotherOpus
    Posted 1 year ago #

    Hello good people,

    Can your plugin: Ultimate Category Excluder

    Do this:

    I need to allow a category to feed in it's own feed E.g.


    BUT -- I must exclude that feed from the site feed:


    I tried adding the below linked PHP to the functions.php and it keeps the categoryX feed out--but it also STOPS the categoryX feed completely!



    function excludecatfeed($query) {
    if(is_feed()) {
    return $query;
    add_filter('pre_get_posts', 'excludecatfeed');

    Thank you for your help!



  2. rushboy2112
    Posted 1 year ago #

    seconding this motion, I have a need to exclude a Category from the main site search, but not within its own Category site search.

    this would mean allowing a Post to display on a search that has this at the end of the URL


    but not within the main site search

    this may be completely impossible -- I believe it's either/or. But it couldn't hurt to ask.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ultimate Category Excluder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic