{"id":4924,"date":"2015-09-26T12:22:27","date_gmt":"2015-09-26T09:22:27","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=4924"},"modified":"2015-09-26T12:22:27","modified_gmt":"2015-09-26T09:22:27","slug":"i-think-the-field-parameter-of-tax_query-should-be-term_id-rather-than-id","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2015\/09\/26\/i-think-the-field-parameter-of-tax_query-should-be-term_id-rather-than-id\/","title":{"rendered":"I think the &#8217;field&#8217; parameter of tax_query should be &#8217;term_id&#8217; rather than &#8217;id&#8217;"},"content":{"rendered":"<p>Reading from the Codex page linked to, I think the value of &#8217;field&#8217; in the tax_query array should be &#8217;term_id&#8217; rather than &#8217;id&#8217;: &#8221;Possible values are &#8217;term_id&#8217;, &#8217;name&#8217; and &#8217;slug&#8217;. Default value is &#8217;term_id&#8217;.&#8221; I&#8217;m guessing &#8217;id&#8217; only works because it causes a fall-back to the default.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8221;Possible values are &#8217;term_id&#8217;, &#8217;name&#8217; and &#8217;slug&#8217;. Default value is &#8217;term_id&#8217;.&#8221; &#8217;id&#8217; only works because it causes a fall-back to the default.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3922],"tags":[2965],"class_list":["post-4924","post","type-post","status-publish","format-standard","hentry","category-aiheeton","tag-wordpress","sijainti-stack-exchange"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=4924"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4924\/revisions"}],"predecessor-version":[{"id":4927,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/4924\/revisions\/4927"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=4924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=4924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=4924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}