{"id":13643,"date":"2024-02-13T09:09:47","date_gmt":"2024-02-13T09:09:47","guid":{"rendered":"https:\/\/kriesi.at\/documentation\/enfold\/?p=13643"},"modified":"2024-11-12T15:36:47","modified_gmt":"2024-11-12T14:36:47","slug":"custom-layout-and-dynamic-content","status":"publish","type":"post","link":"https:\/\/kriesi.at\/documentation\/enfold\/custom-layout-and-dynamic-content\/","title":{"rendered":"Custom Layout &#038; Dynamic Content"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-lsk4sgmv-87f74b5b47a6ca3f47b313c88db7ad0d\">\n#top .av-special-heading.av-lsk4sgmv-87f74b5b47a6ca3f47b313c88db7ad0d{\npadding-bottom:10px;\n}\nbody .av-special-heading.av-lsk4sgmv-87f74b5b47a6ca3f47b313c88db7ad0d .av-special-heading-tag .heading-char{\nfont-size:25px;\n}\n.av-special-heading.av-lsk4sgmv-87f74b5b47a6ca3f47b313c88db7ad0d .av-subheading{\nfont-size:15px;\n}\n<\/style>\n<div  class='av-special-heading av-lsk4sgmv-87f74b5b47a6ca3f47b313c88db7ad0d av-special-heading-h2 blockquote modern-quote  avia-builder-el-0  el_before_av_hr  avia-builder-el-first  av-linked-heading'><h2 class='av-special-heading-tag '  itemprop=\"headline\"  >Custom Layout and Dynamic Content<\/h2><div class=\"special-heading-border\"><div class=\"special-heading-inner-border\"><\/div><\/div><\/div>\n<div  class='hr av-4l81w9-b5b0c6c84c0027478f93af1559d8b8ff hr-default  avia-builder-el-1  el_after_av_heading  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-4eoa8p-f4778119a35830d210c3116e9dd4eb91 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Tutorial<\/h3>\n<\/div><\/section>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-ly2vx18p-feb44c34451d6c1d3ab6be263dc1a361\">\n.avia-video.av-ly2vx18p-feb44c34451d6c1d3ab6be263dc1a361{\nbackground-image:url(https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/dynamic_avia\/avia_video_thumbnails\/youtube\/D1sMhQJYamw\/D1sMhQJYamw.jpg);\n}\n<\/style>\n<div  class='avia-video av-ly2vx18p-feb44c34451d6c1d3ab6be263dc1a361 avia-video-16-9 av-preview-image avia-video-confirm_all av-lazyload-video-embed'  itemprop=\"video\" itemtype=\"https:\/\/schema.org\/VideoObject\"  data-original_url='https:\/\/www.youtube.com\/watch?v=D1sMhQJYamw'><script type='text\/html' class='av-video-tmpl'><div class='avia-iframe-wrap'><iframe loading=\"lazy\" title=\"Custom Template and Dynamic Content with Enfold 6 &amp; ACF\" width=\"1500\" height=\"844\" src=\"https:\/\/www.youtube.com\/embed\/D1sMhQJYamw?feature=oembed&autoplay=1&loop=0&controls=1&mute=0\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div><\/script><div class='av-click-to-play-overlay'><div class=\"avia_playpause_icon\"><\/div><\/div><\/div>\n<div  class='hr av-1b0psiz-468bad8ccec40fa822293788d2e005f6 hr-default  avia-builder-el-4  el_after_av_video  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-ovv8h7-c74a13c6c3995202339f23251c661a9d '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Overview<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-49omnd-88bd1095cce85da3f2461216c3c7abf2 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>&#8220;Dynamic Content&#8221; allows to add post data (like ID, title, &#8230;), post metadata links (like Categories\/Terms, Tags) and custom fields data to ALB elements or tinyMCE content.<\/p>\n<p>&#8220;Custom Page Layout&#8221; allows to create layout sections for posts of any post type, also for custom post types (e.g. product when using WooCommerce). The post type must support our ALB and posts must use our ALB to add these sections with the ALB element &#8220;Custom Page Layout&#8221;. Changes made to a &#8220;Custom Page Layout&#8221; are visible in all posts that use this layout.<\/p>\n<p>&#8220;Dynamic Content&#8221; fields in the &#8220;Custom Page Layout&#8221; element pull the content from the post where the ALB &#8220;Custom Page Layout&#8221; element is added.<\/p>\n<p>It is possible to use multiple ALB &#8220;Custom Page Layout&#8221; elements in one post, but it is not possible to use a ALB &#8220;Custom Page Layout&#8221; element in a &#8220;Custom Page Layout&#8221; post.<\/p>\n<p><strong>To activate this feature:<\/strong><\/p>\n<p>Theme Options -&gt; Layout Builder -&gt; Custom Layout And Dynamic Content<\/p>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13803 size-full\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content.png\" alt=\"\" width=\"1351\" height=\"871\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content.png 1351w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-300x193.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-1030x664.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-768x495.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-705x455.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-450x290.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-And-Dynamic-Content-600x387.png 600w\" sizes=\"auto, (max-width: 1351px) 100vw, 1351px\" \/><\/a><\/p>\n<p><strong>LIMIT USER ACCESS:<\/strong><\/p>\n<p>Theme option allows users with administrator rights or all users to have access to create and edit custom layouts. In case you want to give only selected users the right to do so you can use filter &#8216;avf_custom_layout_show_wp_menus&#8217;. Contact us in case you need help with using this filter.<\/p>\n<\/div><\/section>\n<div  class='hr av-3zu17t-11-a61ee60682da2e244616415acf7e3f2a hr-default  avia-builder-el-7  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-2i5oeh-9f8bded2bf97e024007c7a6168bfd873 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Dynamic Content<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-lsk6r38n-78fb91f94d4dfb27f2986bed56a3b225 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><div id=\"attachment_13654\" style=\"width: 2314px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13654\" class=\"wp-image-13654 size-full\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon.png\" alt=\"\" width=\"2304\" height=\"896\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon.png 2304w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-300x117.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-1030x401.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-768x299.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-1536x597.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-2048x796.png 2048w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-1500x583.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-705x274.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-450x175.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-Icon-600x233.png 600w\" sizes=\"auto, (max-width: 2304px) 100vw, 2304px\" \/><\/a><p id=\"caption-attachment-13654\" class=\"wp-caption-text\">The Dynamic Content icon is displayed next to fields that support dynamic content.<\/p><\/div>\n<p>Basic implementation is with shortcode.<\/p>\n<p>To make it easier for users there is also a shorthand implementation, which is replaced during pageload by the shortcode. This limits usage to &#8220;the_content&#8221; filter areas or areas that support dynamic content like ALB shortcodes. TinyMCE in classic editor posts also support shorthand syntax and offer it in the magic wand button together with the ALB shortcodes.<\/p>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13656\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button.png\" alt=\"\" width=\"2648\" height=\"1500\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button.png 2648w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-300x170.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-1030x583.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-768x435.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-1536x870.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-2048x1160.png 2048w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-1500x850.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-705x399.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-450x255.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Dynamic-Content-In-Magic-Wand-Button-600x340.png 600w\" sizes=\"auto, (max-width: 2648px) 100vw, 2648px\" \/><\/a><\/p>\n<p>To avoid circular reference the content of post_content cannot be used by dynamic content.<\/p>\n<p><strong>Be careful when using shortcodes (esp. in custom fields) as this might lead to nested same named shortcodes which is not allowed in WP and the shortcode could also break the layout.<\/strong><\/p>\n<p>To display dynamic data in the Table element, please make sure to select the Dynamic Data Row option:<\/p>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13681\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row.png\" alt=\"\" width=\"2018\" height=\"810\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row.png 2018w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-300x120.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-1030x413.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-768x308.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-1536x617.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-1500x602.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-705x283.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-450x181.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Table-element-Dynamic-Data-Row-600x241.png 600w\" sizes=\"auto, (max-width: 2018px) 100vw, 2018px\" \/><\/a><\/p>\n<\/div><\/section>\n<div  class='hr av-3zu17t-8-8008bcdd0161058e4bb6480140367112 hr-default  avia-builder-el-10  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-28tuw9-9-873d76e70f5ff0b133d00aca7cbaf65f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Shortcode<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-28tuw9-6-97e5c58f2349af745be90f723087a649 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><pre class=\"notranslate\"><code class=\"notranslate\"><\/code><\/pre>\n<p>Attributes not needed can be skipped.<\/p>\n<p>To use it in ALB modal popup input fields you must use the following notation (otherwise it breaks ALB):<\/p>\n<pre><code><\/code><\/pre>\n<p>For possible src values see enfold\\config-templatebuilder\\avia-template-builder\\php\\class-dynamic-content.php function register_dynamic_data_sources() (key in $this-&gt;shortcodes definition)<\/p>\n<\/div><\/section>\n<div  class='hr av-3zu17t-7-6d5ae9ba122d28db16c71252f9fceea7 hr-default  avia-builder-el-13  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-28tuw9-5-af41856ef06648fe87ccba589748e0e1 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Shorthand<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-28tuw9-3-6bed83f55b9a518dc9a05ddf8ac5ac7c '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Shorthand uses the key of the array $this-&gt;shortcodes found in class aviaDynamicContent.<\/p>\n<p><code>{key}<\/code><\/p>\n<p>e.g.\u00a0<code>13,643<\/code>\u00a0<code>Custom Layout & Dynamic Content<\/code>\u00a0<code>February 13, 2024<\/code><\/p>\n<p>to access content of a custom field &#8211; e.g. &#8220;attribute_color&#8221;:<\/p>\n<p><code><\/code><\/p>\n<p>Shorthand returns the content of the custom field as string. You must use the shortcode notation if you need more control of formatted output or filter &#8216;avf_custom_field_format&#8217;.<\/p>\n<\/div><\/section>\n<div  class='hr av-3zu17t-4-388ecb737771252e94ff66fb07940734 hr-default  avia-builder-el-16  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-28tuw9-2-e25a07060cc4e58597991afa7aaf7276 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Using a custom field content as link<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-28tuw9-1-b5a364e69f0de4e291e49e593822af7c '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>This is only possible with shortcode (e.g.):<\/p>\n<pre><code>\r\n<a class='av-dynamic-content-added av-dynamic-my_custom_link' href='http:\/\/localhost\/dummy' title='Link to: Homepage'  target=\"_blank\" rel=\"noopener noreferrer\" >Homepage<\/a>\r\n<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-1xtbjm3-642c84fce5fafb61f86ae377ba082fbf hr-default  avia-builder-el-19  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lsk6swzr-ed9f3be34d30babb5e20cd49bfa62ae3 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Replace Link settings (advanced tab) using custom fields<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-lsk6t512-9df6526e9d8f82611b5e7cb9677687d9 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><ul>\n<li>Go to Advanced -&gt; Link Settings -&gt; Custom Field Link<\/li>\n<li>dropdown is limited to custom fields only, only 1 custom field is allowed<\/li>\n<li>Read the description text below the element title for a valid custom field content<\/li>\n<\/ul>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13658\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field.png\" alt=\"\" width=\"1504\" height=\"1506\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field.png 1504w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-300x300.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-1030x1030.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-80x80.png 80w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-768x769.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-36x36.png 36w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-180x180.png 180w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-1498x1500.png 1498w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-705x705.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-120x120.png 120w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-450x451.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-600x601.png 600w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Link-field-100x100.png 100w\" sizes=\"auto, (max-width: 1504px) 100vw, 1504px\" \/><\/a><\/p>\n<\/div><\/section>\n<div  class='hr av-1mazzqj-b8ff177f1bfe484d1a39a6996d621c67 hr-default  avia-builder-el-22  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lsk6v4uw-01eb121d7e08c3615da496df448d75ad '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Replace images using custom fields<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-lsk6vcdx-74c15763ac5a069008d7053594f949eb '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><ul>\n<li>Go to Content -&gt; Custom Field Image<\/li>\n<li>dropdown is limited to custom fields only, only 1 custom field is allowed<\/li>\n<li>content of custom field must be a valid attachment ID<\/li>\n<li>a fallback image must be selected to display the Custom Field Image<\/li>\n<\/ul>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13659\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image.png\" alt=\"\" width=\"2304\" height=\"1506\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image.png 2304w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-300x196.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-1030x673.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-768x502.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-1536x1004.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-2048x1339.png 2048w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-1500x980.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-705x461.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-450x294.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Field-Image-600x392.png 600w\" sizes=\"auto, (max-width: 2304px) 100vw, 2304px\" \/><\/a><\/p>\n<\/div><\/section>\n<div  class='hr av-1akzy5n-967cf8fee1768b305b95a6f5012497c1 hr-default  avia-builder-el-25  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lsk6vqtj-6255bfda3ea3087a9e1049fa2b5429e3 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>Replace gallery images using custom fields<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-lsk6vyff-01acca778fd5da422a7bdf62dadcf5ff '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><ul>\n<li>Go to Content -&gt; Custom Field Gallery Images<\/li>\n<li>content of custom field must be a comma seperated list of valid attachment ID&#8217;s<\/li>\n<li>dropdown is limited to custom fields only. Only 1 custom field is allowed and selecting a new one will replace the old selection. If you&#8217;d like to add multiple custom fields, you can copy the shorthand into a plain text editor, add a comma between each shorthand, and paste it back into the Custom Field Image field.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-13683 size-full\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data.png\" alt=\"\" width=\"1504\" height=\"644\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data.png 1504w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-300x128.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-1030x441.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-768x329.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-1500x642.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-705x302.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-450x193.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Gallery-element-Dynamic-Data-600x257.png 600w\" sizes=\"auto, (max-width: 1504px) 100vw, 1504px\" \/><\/a><\/p>\n<\/div><\/section>\n<div  class='hr av-k7skej-707967cccc5f82c634e99676bc7c1b2e hr-default  avia-builder-el-28  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lsk6wrnh-8b3543c1840ea2cede683fe779b1879f '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Custom Page Layout<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-lsk6x16u-79bbc9c3656a5ae98f28d701e42dbdb2 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Custom Page Layout is implemented as CPT and the posts must use ALB. To enable ALB on any CPT, please see <a href=\"https:\/\/kriesi.at\/documentation\/enfold\/intro-to-layout-builder\/#alb-for-any-post-type\">https:\/\/kriesi.at\/documentation\/enfold\/intro-to-layout-builder\/#alb-for-any-post-type<\/a>. Currently Excerpt, Categories and Tags are only for information to group them.<\/p>\n<div id=\"attachment_13662\" style=\"width: 2890px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13662\" class=\"size-full wp-image-13662\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT.png\" alt=\"\" width=\"2880\" height=\"1562\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT.png 2880w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-300x163.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-1030x559.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-768x417.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-1536x833.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-2048x1111.png 2048w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-1500x814.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-705x382.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-450x244.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layouts-CPT-600x325.png 600w\" sizes=\"auto, (max-width: 2880px) 100vw, 2880px\" \/><\/a><p id=\"caption-attachment-13662\" class=\"wp-caption-text\">After activating the Custom Layout and Dynamic Content option in the Enfold theme options &gt; Layout Builder, you should reload the page.<\/p><\/div>\n<p>It allows to create layouts for complete pages or only part of pages. These layouts can be selected and added to posts with the ALB element Custom Page Layout.<\/p>\n<p>Layouts can be changed at any time and these new changes are visible without the need to do any changes on the posts where they are used.<\/p>\n<p>The Underlying Entry ID option is only needed during design of layout with ALB in backend to show real data for the Dynamic Content shortcodes in preview (modal popup and frontend preview) from the selected post.<\/p>\n<div id=\"attachment_13663\" style=\"width: 2890px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13663\" class=\"wp-image-13663 size-full\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field.png\" alt=\"\" width=\"2880\" height=\"1566\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field.png 2880w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-300x163.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-1030x560.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-768x418.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-1536x835.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-2048x1114.png 2048w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-1500x816.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-705x383.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-450x245.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Page-Layout-Underlying-Entry-ID-Field-600x326.png 600w\" sizes=\"auto, (max-width: 2880px) 100vw, 2880px\" \/><\/a><p id=\"caption-attachment-13663\" class=\"wp-caption-text\">The Underlying Entry ID option<\/p><\/div>\n<p>If left empty Dynamic Content shortcodes will be displayed unchanged.<\/p>\n<\/div><\/section>\n<div  class='hr av-2569ft7-b167b9e8036f2bcc8a589b706c19be27 hr-default  avia-builder-el-31  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lt446600-fb0cf7d058b8aa188f15a3b1922b2e68 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>ALB Element Custom Page Layout<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-lt446btw-b8a18e11e59ce49856d460196b0107f4 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p><a href=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13665\" src=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element.png\" alt=\"\" width=\"1958\" height=\"624\" srcset=\"https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element.png 1958w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-300x96.png 300w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-1030x328.png 1030w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-768x245.png 768w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-1536x490.png 1536w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-1500x478.png 1500w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-705x225.png 705w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-450x143.png 450w, https:\/\/kriesi.at\/documentation\/enfold\/wp-content\/uploads\/sites\/22\/2024\/02\/Custom-Layout-ALB-Element-600x191.png 600w\" sizes=\"auto, (max-width: 1958px) 100vw, 1958px\" \/><\/a><\/p>\n<p>This element is based on the &#8220;Page Content&#8221; element, which will no longer be maintained.<\/p>\n<p>It is a fullwidth element in the ALB canvas and adds its content 1:1 in the content flow.<\/p>\n<p>It allows to select content from Custom Page Layout posts. In active beta is also to allow entries from other post types that support ALB and also to use non ALB content of classic editor and block editor posts.<\/p>\n<\/div><\/section>\n<div  class='hr av-1ie6z63-fed736f623bd7860046409d336b7929c hr-default  avia-builder-el-34  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lt446tj0-7b2c3f1401fa1282ae443ac6e79dd3fb '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>ACF (Advanced Custom Fields) Support<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-lt44769x-80ca25d379c2303fe3fb500ad55d9e1e '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>The following ACF types can be used with dynamic content:<\/p>\n<ul>\n<li>text<\/li>\n<li>textarea<\/li>\n<li>number<\/li>\n<li>range<\/li>\n<li>email<\/li>\n<li>url<\/li>\n<li>password<\/li>\n<li>image<\/li>\n<li>gallery (pro version)<\/li>\n<li>link<\/li>\n<li>post_object (multi select not supported)<\/li>\n<li>page_link (multi select not supported)<\/li>\n<li>date_picker<\/li>\n<li>date_time_picker<\/li>\n<li>time_picker<\/li>\n<li>color_picker<\/li>\n<\/ul>\n<p>The shortcode to access an ACF field is:<\/p>\n<pre><code><\/code><\/pre>\n<p>meta_key can be:<\/p>\n<ul>\n<li>acf_field_xxxx (= unique ACF ID)<\/li>\n<li>field_xxxx (= unique ACF ID)<\/li>\n<li>meta_key of custom field<\/li>\n<\/ul>\n<p>Following logic is implemented for dropdown list:<\/p>\n<ul>\n<li>new posts display all available ACF fields (this is ACF related)<\/li>\n<li>after first time of saving the post only ACF fields available for that post type are available<\/li>\n<li>changes made to ACF fields are visible only after saving the post !!!<\/li>\n<\/ul>\n<p>It is possible to use ACF fields and custom fields also in &#8220;Custom Layouts\".<\/p>\n<p>In backend if you specify an &#8220;Underlying Entry ID\" the ACF fields are limited to the ACF fields for that post type, else all available ACF fields are displayed in the selectbox dropdown. Make sure that the specified post has been saved after ACF is activated and all fields have been added &#8211; otherwise you will see all ACF fields or only those that had been added prior to last save (this behaviour is ACF related).<\/p>\n<p>In frontend the ACF fields and custom fields are used from the post, where the ALB element &#8220;Custom Layout\" is used.<\/p>\n<\/div><\/section>\n<section  class='av_textblock_section av-lzr039y6-ac41568a3543252e037d7a7d961c5b17 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>ACF hides WP custom fields<\/h3>\n<p>To speed up pageload in backend ACF by default hide the WP custom field metabox. This does not allow you to add or edit these fields. If you need them you can add the following code to your child theme functions.php:<\/p>\n<pre><code>\r\n\/**\r\n *\r\n * @param boolean $value\r\n * @return boolean            true to remove, false not to remove\r\n *\/\r\nfunction custom_remove_wp_meta_box( $value )\r\n{\r\n\treturn false;\r\n}\r\nadd_filter( 'acf\/settings\/remove_wp_meta_box', 'custom_remove_wp_meta_box', 2000, 1 );\r\n<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-12hfz7v-84315ad4abbf6ec8c077fc3efd195fe9 hr-default  avia-builder-el-38  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lt447qmy-bc84f421e58ffa782dca2e835c08b947 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Custom Post Types<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-lt4489gn-98a1d6f62f44be73e3d32beca43f7ead '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Custom Post types created with ACF (or by other means) can support ALB &#8211; but they need to be registered to ALB.<\/p>\n<p>Starting with 6.0 there is a theme option:<\/p>\n<p>Enfold -&gt; Layout Builder -&gt; Show advanced options -&gt; Activate Your Custom Post Types For ALB<\/p>\n<p>or you can use filter &#8220;avf_alb_supported_post_types&#8221; (kept for backwards compatibility &#8211; we recommend to switch to theme option).<\/p>\n<p>By default Enfold uses archive.php. You can add your customized template to your child theme using WP template hierarchie for post types and taxonomy (see\u00a0<a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/#custom-taxonomies\" rel=\"nofollow\">https:\/\/developer.wordpress.org\/themes\/basics\/template-hierarchy\/#custom-taxonomies<\/a>).<\/p>\n<\/div><\/section>\n<div  class='hr av-l7a023-98ad28db304a8bc5b93843b093e885ad hr-default  avia-builder-el-41  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-lt44di3a-5bb7bf991c589195e5ef3bc8f49a1e38 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h3>How to add Layout Metabox in backend when editing content of a CPT<\/h3>\n<\/div><\/section>\n<section  class='av_textblock_section av-lt44c3az-1d23b640a308155e61cead9d8fd095d0 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><ul dir=\"auto\">\n<li>Using ACF<\/li>\n<\/ul>\n<p dir=\"auto\">ACF -&gt; Post Type -&gt; Edit -&gt; Advanced Configuration -&gt; Checkbox Enfold Layouts to show \/ hide<\/p>\n<ul dir=\"auto\">\n<li>with filter &#8216;avf_metabox_layout_post_types&#8217;<\/li>\n<\/ul>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\">\n<pre class=\"notranslate\"><code class=\"notranslate\">function handler_avf_metabox_layout_post_types( $post_layout_types )\r\n{\r\n      $post_layout_types[] = 'your_post_type';\r\n\r\n     return $post_layout_types;\r\n}\r\n\r\nadd_filter( 'avf_metabox_layout_post_types', 'handler_avf_metabox_layout_post_types', 20, 1 );\r\n\r\n<\/code><\/pre>\n<div class=\"zeroclipboard-container position-absolute right-0 top-0\"><\/div>\n<\/div>\n<p dir=\"auto\">To get a list of all registered CPT&#8217;s:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate\">avia_CPT()-&gt;get_registered_metabox_layout_post_types()<\/code><\/pre>\n<\/div><\/section>\n<div  class='hr av-zcmc2z-ee53a00d063945fa24b66e61ac1f2351 hr-default  avia-builder-el-44  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  id=\"loading_wp_custom_fields\"  class='av_textblock_section av-lt448npv-93bf62940ac9d6fabd13d5702ae45af2 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Loading WP Custom Fields in backend<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-36hy5n-b9a4207e5b01a202f4c9e37c29fa219d '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><p>In large sites it might take some time to query all WP default custom fields from database in backend resulting in a long loading time.<\/p>\n<p>Setting a limit will decrease the loading time (Theme Option Layout Builder -&gt; Limit Number Of WP Default Custom Fields). The smaller the limit, the faster. You need to test which value is acceptable for your needs.<\/p>\n<p>If you do not use default WP custom fields at all, you can select &#8220;Skip all&#8221; and skip the following information.<\/p>\n<p>If you do not see your custom field (e.g. your_field) in the &#8220;WP Custom Fields&#8221; list in the popup you can do the following:<\/p>\n<ul>\n<li>Select an existing field &#8211; this adds the following to the input field: e.g\u00a0 <code><span class=\"\">{<\/span>wp_custom_field:another_custom_field<span class=\"\">}<\/span><\/code><\/li>\n<li>Replace &#8220;another_custom_field&#8221; with &#8220;your_field&#8221;:\u00a0 <code><span class=\"\">{<\/span>wp_custom_field:your_field<span class=\"\">}<\/span><\/code><\/li>\n<\/ul>\n<p>Advanced users may use 2 filters:<\/p>\n<ul>\n<li>avf_before_query_wp_default_custom_fields &#8211; skips our SQL query and you can return an array of custom fields ( e.g. <code>[ 'your_field1', 'your_field2' ]<\/code> )<\/li>\n<li>avf_query_wp_default_custom_fields &#8211; called after our SQL query and allows you to add fields that have been skipped in SQL query due to limit<\/li>\n<\/ul>\n<\/div><\/section>\n<div  class='hr av-1t7xbrf-6f6a74d910229df28bb8984da020e0fc hr-default  avia-builder-el-47  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div>\n<section  class='av_textblock_section av-1dhb3cb-f43ab9bd38b1c1da6c0200c76445dda0 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><h2>Limitations<\/h2>\n<\/div><\/section>\n<section  class='av_textblock_section av-ky62i3-e0bedd0400514cbbcbc0e38797544297 '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/BlogPosting\" itemprop=\"blogPost\" ><div class='avia_textblock'  itemprop=\"text\" ><ul>\n<li>CPTs used in 3rd party plugins might not be compatible with ALB.<\/li>\n<li>Hotspot locations in the Image with Hotspots element are always relative to the source image &#8211; make sure to use images that need the same locations.<\/li>\n<\/ul>\n<\/div><\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[2,12],"tags":[],"class_list":["post-13643","post","type-post","status-publish","format-standard","hentry","category-documentation","category-explore","documentation","explore"],"modified_by":"Yigit","_links":{"self":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/comments?post=13643"}],"version-history":[{"count":46,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13643\/revisions"}],"predecessor-version":[{"id":13831,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/posts\/13643\/revisions\/13831"}],"wp:attachment":[{"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/media?parent=13643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/categories?post=13643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kriesi.at\/documentation\/enfold\/wp-json\/wp\/v2\/tags?post=13643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}