{"id":1005209,"date":"2015-09-15T05:37:59","date_gmt":"2015-09-15T12:37:59","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/"},"modified":"2015-09-16T14:51:17","modified_gmt":"2015-09-16T21:51:17","slug":"what-is-the-custom-post-type-used-for-venues","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/","title":{"rendered":"What is the custom post type used for venues?"},"content":{"rendered":"<p>I need to separate and display venues based on categories. I have used the code generator here: https:\/\/generatewp.com to create a custom category set for venues and it displays and functions just fine for &#8216;posts&#8217;. I need to change that to the custom post type for venues but can&#8217;t find what that is.<\/p>\n<p>current line: <code>register_taxonomy( &#039;tribe_venue_category&#039;, array( &#039;post&#039;, &#039;VENUE CUSTOM POST TYPE NEEDED&#039; ), $args );<\/code> <\/p>\n<p>full code added to functions.php<\/p>\n<pre><code>function venue_category() {\n\n\t$labels = array(\n\t\t&#039;name&#039;                       =&gt; _x( &#039;Venue Categories&#039;, &#039;Taxonomy General Name&#039;, &#039;text_domain&#039; ),\n\t\t&#039;singular_name&#039;              =&gt; _x( &#039;Venue Category&#039;, &#039;Taxonomy Singular Name&#039;, &#039;text_domain&#039; ),\n\t\t&#039;menu_name&#039;                  =&gt; __( &#039;Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;all_items&#039;                  =&gt; __( &#039;Venue Categories&#039;, &#039;text_domain&#039; ),\n\t\t&#039;parent_item&#039;                =&gt; __( &#039;Parent Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;parent_item_colon&#039;          =&gt; __( &#039;Parent Venue Category:&#039;, &#039;text_domain&#039; ),\n\t\t&#039;new_item_name&#039;              =&gt; __( &#039;New Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;add_new_item&#039;               =&gt; __( &#039;Add New Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;edit_item&#039;                  =&gt; __( &#039;Edit Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;update_item&#039;                =&gt; __( &#039;Update Venue Category&#039;, &#039;text_domain&#039; ),\n\t\t&#039;view_item&#039;                  =&gt; __( &#039;View Item&#039;, &#039;text_domain&#039; ),\n\t\t&#039;separate_items_with_commas&#039; =&gt; __( &#039;Separate venue categories with commas&#039;, &#039;text_domain&#039; ),\n\t\t&#039;add_or_remove_items&#039;        =&gt; __( &#039;Add or remove venue categoriess&#039;, &#039;text_domain&#039; ),\n\t\t&#039;choose_from_most_used&#039;      =&gt; __( &#039;Choose from the most used venue categories&#039;, &#039;text_domain&#039; ),\n\t\t&#039;popular_items&#039;              =&gt; __( &#039;Popular Items&#039;, &#039;text_domain&#039; ),\n\t\t&#039;search_items&#039;               =&gt; __( &#039;Search venues&#039;, &#039;text_domain&#039; ),\n\t\t&#039;not_found&#039;                  =&gt; __( &#039;Not Found&#039;, &#039;text_domain&#039; ),\n\t);\n\t$args = array(\n\t\t&#039;labels&#039;                     =&gt; $labels,\n\t\t&#039;hierarchical&#039;               =&gt; true,\n\t\t&#039;public&#039;                     =&gt; true,\n\t\t&#039;show_ui&#039;                    =&gt; true,\n\t\t&#039;show_admin_column&#039;          =&gt; true,\n\t\t&#039;show_in_nav_menus&#039;          =&gt; true,\n\t\t&#039;show_tagcloud&#039;              =&gt; true,\n\t);\n\tregister_taxonomy( &#039;tribe_venue_category&#039;, array( &#039;post&#039; ), $args );\n\n}\nadd_action( &#039;init&#039;, &#039;venue_category&#039;, 0 );\n\n}<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-1005209","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>What is the custom post type used for venues? -<\/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\/what-is-the-custom-post-type-used-for-venues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the custom post type used for venues? -\" \/>\n<meta property=\"og:description\" content=\"I need to separate and display venues based on categories. I have used the code generator here: https:\/\/generatewp.com to create a custom category set for venues and it displays and functions just fine for &#8216;posts&#8217;. I need to change that to the custom post type for venues but can&#8217;t find what that is. current line: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-16T21:51:17+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\/what-is-the-custom-post-type-used-for-venues\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/\",\"name\":\"What is the custom post type used for venues? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-15T12:37:59+00:00\",\"dateModified\":\"2015-09-16T21:51:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/#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\":\"What is the custom post type used for venues?\"}]},{\"@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":"What is the custom post type used for venues? -","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\/what-is-the-custom-post-type-used-for-venues\/","og_locale":"en_US","og_type":"article","og_title":"What is the custom post type used for venues? -","og_description":"I need to separate and display venues based on categories. I have used the code generator here: https:\/\/generatewp.com to create a custom category set for venues and it displays and functions just fine for &#8216;posts&#8217;. I need to change that to the custom post type for venues but can&#8217;t find what that is. current line: [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/","article_modified_time":"2015-09-16T21:51:17+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\/what-is-the-custom-post-type-used-for-venues\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/","name":"What is the custom post type used for venues? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-15T12:37:59+00:00","dateModified":"2015-09-16T21:51:17+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/what-is-the-custom-post-type-used-for-venues\/#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":"What is the custom post type used for venues?"}]},{"@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\/1005209","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\/1005209\/revisions"}],"predecessor-version":[{"id":1005308,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1005209\/revisions\/1005308"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1005209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}