{"id":984636,"date":"2015-07-08T00:33:02","date_gmt":"2015-07-08T07:33:02","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/"},"modified":"2015-07-23T07:05:03","modified_gmt":"2015-07-23T14:05:03","slug":"query-by-wordpress-category","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/","title":{"rendered":"query by wordpress category"},"content":{"rendered":"<p>Hello<br \/>\nalthough i have found this thread<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"fTItVDmOpq\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-parameter-for-category\/\">Query parameter for category<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Query parameter for category&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-parameter-for-category\/embed\/#?secret=OwNINXOWdZ#?secret=fTItVDmOpq\" data-secret=\"fTItVDmOpq\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\n for the same issue i have a problem querying for tribe events with the category parameter. I am trying for example to get all events under a category (not events category) and instead i get all events<br \/>\nHere is the code<\/p>\n<p>$args = array(<br \/>\n\t\t\t&#8216;post_type&#8217; =&gt; &#8216;tribe_events&#8217;,<br \/>\n\t\t\t&#8216;taxonomy&#8217;=&gt;$category,<br \/>\n\t\t\t&#8216;orderby&#8217; =&gt; &#8216;event_date&#8217;,<br \/>\n\t\t\t&#8216;order&#8217; =&gt; &#8216;DESC&#8217;,<br \/>\n\t\t\t);<\/p>\n<p>  query_posts($args);  <\/p>\n<p>Can you give me a hint? On another notice, i find it a bit confusing using the documentation as a lot of deprecated functions still appear there and not all options and parameters are listed for the functions. Am i missing something?<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-984636","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>query by wordpress category -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"query by wordpress category -\" \/>\n<meta property=\"og:description\" content=\"Hello although i have found this thread Query parameter for category for the same issue i have a problem querying for tribe events with the category parameter. I am trying for example to get all events under a category (not events category) and instead i get all events Here is the code $args = array( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-23T14:05:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/\",\"name\":\"query by wordpress category -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-07-08T07:33:02+00:00\",\"dateModified\":\"2015-07-23T14:05:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"query by wordpress category\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"query by wordpress category -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/","og_locale":"en_US","og_type":"article","og_title":"query by wordpress category -","og_description":"Hello although i have found this thread Query parameter for category for the same issue i have a problem querying for tribe events with the category parameter. I am trying for example to get all events under a category (not events category) and instead i get all events Here is the code $args = array( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/","article_modified_time":"2015-07-23T14:05:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/","name":"query by wordpress category -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-07-08T07:33:02+00:00","dateModified":"2015-07-23T14:05:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/query-by-wordpress-category\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"query by wordpress category"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/984636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/984636\/revisions"}],"predecessor-version":[{"id":984740,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/984636\/revisions\/984740"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=984636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}