{"id":23153,"date":"2016-12-20T11:46:46","date_gmt":"2016-12-20T11:46:46","guid":{"rendered":"https:\/\/wpgeodirectory.com\/docs\/?p=23153"},"modified":"2016-12-20T11:49:21","modified_gmt":"2016-12-20T11:49:21","slug":"creating-different-event-types","status":"publish","type":"post","link":"https:\/\/wpgeodirectory.com\/docs\/creating-different-event-types\/","title":{"rendered":"Creating different Event types"},"content":{"rendered":"<h4>On this page:<\/h4>\n<p><a href=\"http:\/\/@intro\">Introduction<\/a> &#8211; <a href=\"#scenario\">Scenario<\/a> &#8211; <a href=\"#prep\">Preparation<\/a> &#8211; <a href=\"#user\">User experience<\/a><\/p>\n<h3><a id=\"intro\"><\/a>Introduction<\/h3>\n<ol>\n<li>You can create different <a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/addons\/custom-post-types\/\">Custom Post Types<\/a>, but you can only have one <a href=\"https:\/\/wpgeodirectory.com\/downloads\/events\/\">Event Custom Post Type<\/a>.<\/li>\n<li>This article explains how you can create different Event types, with the use of the <a href=\"https:\/\/wpgeodirectory.com\/docs\/category\/addons\/prices-and-payments\/\">Payments Manager<\/a>.<\/li>\n<li><i class=\"fa fa-lightbulb-o fa-2x\" style=\"color: green;\"><\/i> <span style=\"color: #008000;\">The options and idea explained below can also be used for other Custom Post Types.<\/span><\/li>\n<\/ol>\n<h3><a id=\"scenario\"><\/a>Scenario<\/h3>\n<ol>\n<li>We want our users to add Festivals and Markets, and Festival submissions can include the name of artists, and Market submissions can include details of the organisers.<\/li>\n<li>But we want to make it easy, so when they choose to add a Festival, they are not shown any Market specific fields.<\/li>\n<\/ol>\n<h3><a id=\"prep\"><\/a>Preparation<\/h3>\n<h4>Categories<\/h4>\n<ol>\n<li>Go to <em><strong>Events &gt; Event Categories<\/strong><\/em> and add your categories:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event5.png\" alt=\"\" width=\"436\" height=\"244\" \/><\/li>\n<\/ol>\n<h4>Price packages<\/h4>\n<ol>\n<li>Go to <em><strong>GD &gt; Prices and Payments<\/strong><\/em> and <a href=\"https:\/\/wpgeodirectory.com\/docs\/prices-and-payments-add-on-overview\/#prices\">create or edit Event price packages<\/a>.<\/li>\n<li>We will create a Festivals and a Markets package:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event6.png\" alt=\"\" width=\"468\" height=\"67\" \/><\/li>\n<li>After creating the Festivals package, save it first.<\/li>\n<li>Then choose to edit again, and now you will be able to exclude all the Event categories that are not Festival categories:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event7.png\" alt=\"\" width=\"665\" height=\"199\" \/><\/li>\n<li>Repeat for the Markets package.<\/li>\n<\/ol>\n<h4>Custom fields<\/h4>\n<ol>\n<li>Go to <em><strong>GD &gt; Event Settings<\/strong><\/em> and create an Artists <a href=\"https:\/\/wpgeodirectory.com\/docs\/core-place-settings\/#custom\">custom field<\/a>.<\/li>\n<li>Make sure to restrict the custom field to the Festival package only:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event8.png\" alt=\"\" width=\"335\" height=\"132\" \/><\/li>\n<li>Repeat for the Markets only custom field.<\/li>\n<\/ol>\n<h3><a id=\"user\"><\/a>User experience<\/h3>\n<ol>\n<li>Now you can link direct to the packages like this if you like:\n<ol>\n<li><strong>Festivals:<\/strong> yoursite.com\/add-listing\/?listing_type=gd_event&amp;package_id=2<\/li>\n<li><strong>Markets:<\/strong> yoursite.com\/add-listing\/?listing_type=gd_event&amp;package_id=3<\/li>\n<\/ol>\n<\/li>\n<li>And your users can also select from the <em><strong>Add Listing<\/strong><\/em> page:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event9.png\" alt=\"\" width=\"258\" height=\"101\" \/><\/li>\n<li>If they choose the Festival package, then the festival categories will be the only ones available for selection:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event10.png\" alt=\"\" width=\"455\" height=\"100\" \/><\/li>\n<li>Only the Festival specific custom fields will be available too:<br \/>\n<img loading=\"lazy\" class=\"greenborder\" src=\"https:\/\/wpgeodirectory.com\/docs\/wp-content\/uploads\/sites\/3\/2016\/12\/event11.png\" alt=\"\" width=\"308\" height=\"103\" \/><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>On this page: Introduction &#8211; Scenario &#8211; Preparation &#8211; User experience Introduction You can create different Custom Post Types, but you can only have one Event Custom Post Type. This article explains how you can create different Event types, with the use of the Payments Manager. The options and idea explained below can also be &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/wpgeodirectory.com\/docs\/creating-different-event-types\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Creating different Event types&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1676,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[33],"tags":[],"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/23153"}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/users\/1676"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/comments?post=23153"}],"version-history":[{"count":0,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/posts\/23153\/revisions"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/media?parent=23153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/categories?post=23153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/docs\/wp-json\/wp\/v2\/tags?post=23153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}