{"id":8817,"date":"2024-12-29T05:09:56","date_gmt":"2024-12-29T05:09:56","guid":{"rendered":"https:\/\/support.themewinter.com\/docs\/plugins\/?post_type=docs&#038;p=8817"},"modified":"2024-12-29T05:31:26","modified_gmt":"2024-12-29T05:31:26","password":"","slug":"acf-field-support","status":"publish","type":"docs","link":"https:\/\/support.themewinter.com\/docs\/plugins\/plugin-docs\/troubleshooting\/acf-field-support\/","title":{"rendered":"ACF Field Support"},"content":{"rendered":"\n<p>Advanced Custom Fields (ACF) allows you to add custom fields to your events. To display ACF field data directly in the event editor, you can use shortcodes. This guide explains how to insert ACF shortcodes into your content without any custom coding.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Create Custom Fields using ACF<\/strong><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1350\" height=\"575\" src=\"https:\/\/support.themewinter.com\/docs\/plugins\/wp-content\/uploads\/sites\/3\/2024\/12\/Create-ACF-Field.png\" alt=\"\" class=\"wp-image-8818\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Add value to the field<\/strong><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1355\" height=\"602\" src=\"https:\/\/support.themewinter.com\/docs\/plugins\/wp-content\/uploads\/sites\/3\/2024\/12\/Add-ACF-field-Value.png\" alt=\"\" class=\"wp-image-8821\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Create a shortcode<\/strong><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>Add the code inside your theme&#8217;s functions.php file or using any code snippet plugin to enable &#8220;custom_acf_field&#8221; shortcode in your system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function display_custom_field_callback($atts) {\n    global $post;\n    $field_name = isset($atts&#91;'field']) ? $atts&#91;'field'] : '';\n    if ($field_name) {\n        return get_post_meta($post->ID, $field_name, true);\n    }\n    return '';\n}\nadd_shortcode('custom_acf_field', 'display_custom_field_callback');\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1343\" height=\"596\" src=\"https:\/\/support.themewinter.com\/docs\/plugins\/wp-content\/uploads\/sites\/3\/2024\/12\/Shortcode-Function.png\" alt=\"\" class=\"wp-image-8822\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Use the shortcode <strong>[custom_acf_field field=&#8221;short_intro&#8221;]<\/strong> inside the editor and you will be good to go.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img alt=\"\" loading=\"lazy\" decoding=\"async\" width=\"1342\" height=\"599\" src=\"https:\/\/support.themewinter.com\/docs\/plugins\/wp-content\/uploads\/sites\/3\/2024\/12\/Shortcode-placement.png\" alt=\"\" class=\"wp-image-8823\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Advanced Custom Fields (ACF) allows you to add custom fields to your events. To display ACF field data directly in the event editor, you can use shortcodes. This guide explains how to insert ACF shortcodes into your content without any custom coding. Create Custom Fields using ACF Add value to the field Create a shortcode [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_eb_attr":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[59],"doc_tag":[],"class_list":["post-8817","docs","type-docs","status-publish","hentry","doc_category-troubleshooting"],"year_month":"2026-05","word_count":137,"total_views":"3245","reactions":{"happy":"0","normal":"0","sad":"3"},"author_info":{"name":"teamwinter","author_nicename":"teamwinter","author_url":"https:\/\/support.themewinter.com\/docs\/plugins\/author\/teamwinter\/"},"doc_category_info":[{"term_name":"Troubleshooting","term_url":"https:\/\/support.themewinter.com\/docs\/plugins\/docs\/troubleshooting\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/docs\/8817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/comments?post=8817"}],"version-history":[{"count":3,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/docs\/8817\/revisions"}],"predecessor-version":[{"id":8826,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/docs\/8817\/revisions\/8826"}],"wp:attachment":[{"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/media?parent=8817"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/doc_category?post=8817"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/support.themewinter.com\/docs\/plugins\/wp-json\/wp\/v2\/doc_tag?post=8817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}