{"id":1896677,"date":"2019-10-18T13:19:51","date_gmt":"2019-10-18T17:19:51","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/genesis-framework-and-attendee-registration\/"},"modified":"2021-06-28T05:49:51","modified_gmt":"2021-06-28T09:49:51","slug":"genesis-framework-and-attendee-registration","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/genesis-framework-and-attendee-registration\/","title":{"rendered":"Genesis Framework &#038; Tickets"},"content":{"rendered":"\n<p>As of Event Tickets 4.9, the attendee details are now collected on a new, separate screen instead of the event page where the attendee form used to be. The default slug for this page is &#8216;attendee-registration&#8217;.<\/p>\n\n\n\n<p>When using a theme based on the Genesis Framework and having a specific setting, the Attendee Registration page will not show up properly. It will show a kind of an excerpt of that page.<\/p>\n\n\n\n<p>The setting in question can be found under Genesis \u2192 Theme Settings \u2192 Content Archive.<\/p>\n\n\n\n<p>When the setting is Display \u2192&nbsp;Excerpt or the content limit is higher than <code>0<\/code> \u2014 basically <strong>anything other than<\/strong>&nbsp;Display \u2192&nbsp;Entry Content and &#8220;Limit content to 0 characters&#8221; \u2014&nbsp;then the issue will be visible.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/knowledgebase\/wp-content\/uploads\/2019\/10\/attendee-registration-genesis-setting.jpg\" alt=\"\" class=\"wp-image-1944233\"\/><\/figure>\n\n\n\n<p>Here is the solution to fix that.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-usage\">Usage<\/h3>\n\n\n\n<p>Copy the below code into your theme&#8217;s <code>functions.php<\/code> file (or wherever you usually put custom code).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-plugins\">Plugins<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Event Tickets<\/li><li>Event Tickets Plus<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-snippet\">Snippet<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ Fix for the attendee registration page glitch with Genesis\nadd_action( &#039;genesis_before_loop&#039;, &#039;tribe_tickets_fix_etp_attendee_registration_page_for_genesis&#039; );\nfunction tribe_tickets_fix_etp_attendee_registration_page_for_genesis() {\n\tif ( ! function_exists( &#039;tribe&#039; ) ) {\n\t\treturn;\n\t}\n\ttry {\n\t\tif ( tribe( &#039;tickets.attendee_registration&#039; )-&gt;is_on_page() ) {\n\t\t\tremove_action( &#039;genesis_entry_content&#039;, &#039;genesis_do_post_content&#039; );\n\t\t\tadd_action( &#039;genesis_entry_content&#039;, &#039;do_post_content&#039; );\n\t\t}\n}\n\tcatch ( Exception $e ) {\n\t}\n}\n\nfunction do_post_content() {\n\tthe_content();\n}\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-notes\">Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Originally written in December 2018<\/li><li>Tested with Event Tickets 4.9 and &nbsp;Event Tickets Plus 4.9<\/li><li>Author: Andr\u00e1s Guseo, Barry Hughes<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>As of Event Tickets 4.9, the attendee details are now collected on a new, separate screen instead of the event page where the attendee form used to be. The default slug for this page is &#8216;attendee-registration&#8217;. When using a theme based on the Genesis Framework and having a specific setting, the Attendee Registration page will&#8230;<\/p>\n","protected":false},"author":17,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[46],"tags":[],"stellar-product-taxonomy":[155,156],"class_list":["post-1896677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integrations","stellar-product-taxonomy-event-tickets","stellar-product-taxonomy-event-tickets-plus"],"acf":[],"taxonomy_info":{"category":[{"value":46,"label":"Integrations"}],"stellar-product-taxonomy":[{"value":155,"label":"Event Tickets"},{"value":156,"label":"Event Tickets Plus"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"Andras Guseo","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/andras\/"},"comment_info":0,"category_info":[{"term_id":46,"name":"Integrations","slug":"integrations","term_group":0,"term_taxonomy_id":46,"taxonomy":"category","description":"","parent":0,"count":115,"filter":"raw","term_order":"0","cat_ID":46,"category_count":115,"category_description":"","cat_name":"Integrations","category_nicename":"integrations","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896677"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896677\/revisions"}],"predecessor-version":[{"id":1956143,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896677\/revisions\/1956143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896677"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}