{"id":1363504,"date":"2017-10-13T15:11:27","date_gmt":"2017-10-13T22:11:27","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/"},"modified":"2017-10-13T15:11:27","modified_gmt":"2017-10-13T22:11:27","slug":"where-to-place-acf_form_head-to-save-submitted-data","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/","title":{"rendered":"Where to Place acf_form_head() to Save Submitted Data"},"content":{"rendered":"<p>I have the Advanced Custom Fields showing on the frontend CE form\u2014and they save if the edits are made via admin\u2014but I cannot get the frontend form to save the data.<\/p>\n<p>According to the Advanced Custom Fields documentation, found here: https:\/\/www.advancedcustomfields.com\/resources\/acf_form_head\/<\/p>\n<blockquote><p>This function is used to process, validate and save the submitted form data created by the acf_form() function. This function will also enqueue all ACF related scripts and styles for the acf form to render correctly. This function must be placed before any HTML has been created, preferably above the get_header(); function in your theme file.<\/p><\/blockquote>\n<p>So that figures to be the issue. But does anyone have any guesses as to where I could place the acf_form_head()? I see no get_header(); function among the Community Events template files. I&#8217;m at a total loss, and the ACF support staff I&#8217;ve worked with have no familiarity with the Community Events plugin, suggesting I check with the devs here.<\/p>\n","protected":false},"template":"","class_list":["post-1363504","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>Where to Place acf_form_head() to Save Submitted Data -<\/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\/where-to-place-acf_form_head-to-save-submitted-data\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Where to Place acf_form_head() to Save Submitted Data -\" \/>\n<meta property=\"og:description\" content=\"I have the Advanced Custom Fields showing on the frontend CE form\u2014and they save if the edits are made via admin\u2014but I cannot get the frontend form to save the data. According to the Advanced Custom Fields documentation, found here: https:\/\/www.advancedcustomfields.com\/resources\/acf_form_head\/ This function is used to process, validate and save the submitted form data created [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/\" \/>\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\/where-to-place-acf_form_head-to-save-submitted-data\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/\",\"name\":\"Where to Place acf_form_head() to Save Submitted Data -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-13T22:11:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/#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\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Where to Place acf_form_head() to Save Submitted Data\"}]},{\"@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":"Where to Place acf_form_head() to Save Submitted Data -","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\/where-to-place-acf_form_head-to-save-submitted-data\/","og_locale":"en_US","og_type":"article","og_title":"Where to Place acf_form_head() to Save Submitted Data -","og_description":"I have the Advanced Custom Fields showing on the frontend CE form\u2014and they save if the edits are made via admin\u2014but I cannot get the frontend form to save the data. According to the Advanced Custom Fields documentation, found here: https:\/\/www.advancedcustomfields.com\/resources\/acf_form_head\/ This function is used to process, validate and save the submitted form data created [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/","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\/where-to-place-acf_form_head-to-save-submitted-data\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/","name":"Where to Place acf_form_head() to Save Submitted Data -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-13T22:11:27+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/where-to-place-acf_form_head-to-save-submitted-data\/#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":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Where to Place acf_form_head() to Save Submitted Data"}]},{"@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\/1363504","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1363504\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1363504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}