Support » Plugin: Ultimate Category Excluder » Exclude Categories from only Main Feed

  • Resolved contemplate


    I’ve seen a few people request this and ultimately it would be great to have 2 columns for excluding feeds like:
    Exclude from ALL feeds?
    Exclude from MAIN feed?

    But in my case I needed a quick and simple hack to make the feed exclusions only on the main feed rather than ALL of the feeds.

    Edit file: /plugins/ultimate-category-excluder/ultimate-category-excluder.php
    Line 152

    Change this:

    if ( $query->is_feed ) {

    to this:

    if ( $query->is_feed && !$query->is_archive ) {

    Now the categories excluded will only be for the main feed.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Exclude Categories from only Main Feed’ is closed to new replies.