{"id":4605868,"date":"2014-02-12T16:33:53","date_gmt":"2014-02-12T16:33:53","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/exlude-option\/"},"modified":"2016-08-21T16:14:36","modified_gmt":"2016-08-21T16:14:36","slug":"exlude-option","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/exlude-option\/","title":{"rendered":"Exlude option"},"content":{"rendered":"<p>Hi!<\/p>\n<p>I&#8217;ve been using your plug-in for one site I maintain.<br \/>\nBut the thing is that I needed to be able to exclude some stuff from Archives.<\/p>\n<p>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.<\/p>\n<p>I&#8217;ve come up with a hook &#8211; excluding one tag ID (which I added to all the posts I wanted to exclude).<\/p>\n<p>That&#8217;s what I&#8217;ve got http:\/\/pastebin.com\/vTSDLPCM<br \/>\nDiff:<br \/>\n28, 32 &#8211; Updated widget form (very basic)<\/p>\n<p>40 &#8211; Added to update()<\/p>\n<p>51, 62 &#8211; Updated query.<\/p>\n<p>I triyed to use arrays, uniting vars with commas etc, but that didn&#8217;t work.<br \/>\nI am closing work on this project now, so maybe of no help with this.<br \/>\nSo consider as FYI.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/better-archives-widget\/<\/p>\n","protected":false},"template":"","class_list":["post-4605868","topic","type-topic","status-closed","hentry","topic-tag-archives","topic-tag-mysql","topic-tag-taxonomy"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4605868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4605868\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4605868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}