Title: Exlude option
Last modified: August 21, 2016

---

# Exlude option

 *  [alexbuznik](https://wordpress.org/support/users/alexbuznik/)
 * (@alexbuznik)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/exlude-option/)
 * Hi!
 * I’ve been using your plug-in for one site I maintain.
    But the thing is that 
   I needed to be able to exclude some stuff from Archives.
 * What I wanted to achieve is to exclude category IDs, but the query did not accept
   that for some reason, though I tried in different ways.
 * I’ve come up with a hook – excluding one tag ID (which I added to all the posts
   I wanted to exclude).
 * That’s what I’ve got [http://pastebin.com/vTSDLPCM](http://pastebin.com/vTSDLPCM)
   
   Diff: 28, 32 – Updated widget form (very basic)
 * 40 – Added to update()
 * 51, 62 – Updated query.
 * I triyed to use arrays, uniting vars with commas etc, but that didn’t work.
    
   I am closing work on this project now, so maybe of no help with this. So consider
   as FYI.
 * [https://wordpress.org/plugins/better-archives-widget/](https://wordpress.org/plugins/better-archives-widget/)

The topic ‘Exlude option’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/better-archives-widget_f0f1ef.svg)
 * [Better archives widget](https://wordpress.org/plugins/better-archives-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-archives-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-archives-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/better-archives-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-archives-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-archives-widget/reviews/)

## Tags

 * [archives](https://wordpress.org/support/topic-tag/archives/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * 0 replies
 * 1 participant
 * Last reply from: [alexbuznik](https://wordpress.org/support/users/alexbuznik/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/exlude-option/)
 * Status: not resolved