Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#20068 closed feature request (invalid)

Allow more WP_Query arguments for feeds

Reported by: iridox Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Feeds Keywords:
Focuses: Cc:


Specifically, the ability to exclude tags and/or specific posts and not just categories.

The ideal setup would be http://domain.com?feed=rss2&cat=news&tag=-bing,-google

Which would make an RSS2 feed with posts in category "News", excluding ones tagged "Bing" and "Google"

It might make more sense to handle tags/posts by their ID instead for cleanliness. Is this already implemented somewhere? I can't seem to make it work.

Change History (1)

#1 @scribu
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The ?feed=rss2 parameter is independent from all other parameters.

So, you should open a new ticket for each capability (if there isn't one already):

  • exclude tags via URL
  • exclude certain post IDs via URL.
Note: See TracTickets for help on using tickets.