How to exclude tags via URL parameters?
-
I’m looking to add a feature to my site where the homepage and feeds could be customized via URL parameters to exclude posts with certain tags.
An example for someone who wants to see all posts except those tagged “dogs”:
https://example.com/exclude/dogs/
or
https://example.com?exclude=dogsIdeally, it would need to also accept multiple exclusions:
https://example.com/exclude/dogs,cats/The same functionality should also work for feeds:
https://example.com/feed/exclude/dogs,cats/Any tips on how to accomplish this would be appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to exclude tags via URL parameters?’ is closed to new replies.