{"id":2072257,"date":"2011-05-09T20:43:00","date_gmt":"2011-05-09T20:43:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-catablog-operator-question\/"},"modified":"2016-08-19T23:57:52","modified_gmt":"2016-08-19T23:57:52","slug":"plugin-catablog-operator-question","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-catablog-operator-question\/","title":{"rendered":"[Plugin: CataBlog] Operator question"},"content":{"rendered":"<p>Hi<\/p>\n<p>I love CataBlog.  Is very easy to install and use.  But&#8230;  I have a question about the operator code to filter the categories for display.<\/p>\n<p>Is there any way to do the following query and if so how:<\/p>\n<p>ItemA is a member of 2 categories x,y<br \/>\nItemB is a member of 1 category x<\/p>\n<p>How can I filter so that items of category x BUT NOT category y result? i.e I only want to display itemB in my page. <\/p>\n<p>I cannot use category=&#8221;y&#8221; operator=&#8221;not in&#8221; because I would have to have a huge list of other categories that would show up but I could use category=&#8221;a,b,c,d, &#8230; y,z&#8221; operator = &#8220;not in&#8221; but it doesn&#8217;t seem that elegant a solution and would probably be horrendous in terms of query speed.  <\/p>\n<p>I would appreciate an thoughts you may have.<\/p>\n<p>Thanks<br \/>\nJOL<\/p>\n","protected":false},"template":"","class_list":["post-2072257","topic","type-topic","status-closed","hentry","topic-tag-operator"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2072257","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\/2072257\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2072257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}