{"id":8516,"date":"2024-01-19T16:49:38","date_gmt":"2024-01-19T08:49:38","guid":{"rendered":"https:\/\/conditionalblocks.com\/docs\/advanced-custom-fields\/"},"modified":"2025-05-02T14:57:50","modified_gmt":"2025-05-02T06:57:50","slug":"acf","status":"publish","type":"docs","link":"https:\/\/conditionalblocks.com\/docs\/acf\/","title":{"rendered":"Advanced Custom Fields"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"200\" height=\"200\" src=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png\" alt=\"Advanced Custom Fields (ACF) logo.\" class=\"wp-image-8518\" srcset=\"https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png 200w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-150x150.png 150w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-40x40.png 40w, https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-128x128.png 128w\" sizes=\"(max-width: 200px) 100vw, 200px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.advancedcustomfields.com\" data-type=\"link\" data-id=\"https:\/\/www.advancedcustomfields.com\" target=\"_blank\" rel=\"noreferrer noopener\">Advanced Custom Fields<\/a>, or ACF for short, is a plugin for WordPress that lets you add your own fields to your website. It&#8217;s super handy if you want to customize your site more than the usual WordPress options allow. Think of it as a way to make your website fit exactly what you need, like adding a special rating to a review or a map to an event listing.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-50b17013 with-border     \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"110\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\t<strong>Table of contents<\/strong>\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#conditional-blocks-acf-integration\" class=\"uagb-toc-link__trigger\">Conditional Blocks + ACF Integration<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#its-fast-and-its-a-no-code-solution\" class=\"uagb-toc-link__trigger\">It&#039;s fast and it&#039;s a no-code solution<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#setting-up\" class=\"uagb-toc-link__trigger\">Setting up<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#available-conditions\" class=\"uagb-toc-link__trigger\">Available Conditions<\/a><\/ul><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<h2 class=\"wp-block-heading\">Conditional Blocks + ACF Integration<\/h2>\n\n\n\n<p>Now, imagine you could show or hide these custom touches based on certain conditions. That&#8217;s where Conditional Blocks comes in. It&#8217;s a plugin that works hand-in-hand with ACF to control when different parts of your site are visible. For example, you could have a special announcement on your homepage that only shows up if you&#8217;ve set a specific value in an ACF field, like &#8220;Event Date.&#8221; Or maybe you want to display a bonus download link, but only for visitors who have filled out a form on your site, which you&#8217;ve tracked with an ACF field.<\/p>\n\n\n\n<p>By combining ACF with Conditional Blocks, you&#8217;re not just adding extra information to your site; you&#8217;re also deciding exactly when and for whom that information should appear. This makes your website smarter and more interactive, creating a more engaging experience for your visitors without making things complicated for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">It&#8217;s fast and it&#8217;s a no-code solution<\/h3>\n\n\n\n<p>Together, ACF and Conditional Blocks give you a lot of power to make your website work just the way you want it to, without having to dive into complex code. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Setting up<\/h3>\n\n\n\n<p>You&#8217;ll just need Advanced Custom Fields (Pro or Free version, it&#8217;s up to you) and Conditional Blocks Pro installed on your WordPress site.<\/p>\n\n\n\n<p>Once both plugins are activated, then the ACF conditions will automatically appear in the Condition Builder. You don&#8217;t need to configure anything else. All required data (such as fields and their groups) from ACF will also be automatically pull. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Available Conditions<\/h2>\n","protected":false},"featured_media":8518,"parent":0,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[35],"class_list":["post-8516","docs","type-docs","status-publish","has-post-thumbnail","hentry","docs_category-integrations"],"blocksy_meta":[],"uagb_featured_image_src":{"full":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"thumbnail":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-150x150.png",150,150,true],"medium":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"medium_large":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"large":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"docspress_archive":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-40x40.png",40,40,true],"1536x1536":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"2048x2048":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false],"sl-small":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo-128x128.png",128,128,true],"sl-large":["https:\/\/conditionalblocks.com\/wp-content\/uploads\/2024\/01\/acf-logo.png",200,200,false]},"uagb_author_info":{"display_name":"Morgan","author_link":"https:\/\/conditionalblocks.com\/author\/"},"uagb_comment_info":0,"uagb_excerpt":"Advanced Custom Fields, or ACF for short, is a plugin for WordPress that lets you add your own fields to your website. It&#8217;s super handy if you want to customize your site more than the usual WordPress options allow. Think of it as a way to make your website fit exactly what you need, like&hellip;","_links":{"self":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/8516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/comments?post=8516"}],"version-history":[{"count":5,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/8516\/revisions"}],"predecessor-version":[{"id":8959,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs\/8516\/revisions\/8959"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/media\/8518"}],"wp:attachment":[{"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/media?parent=8516"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/conditionalblocks.com\/wp-json\/wp\/v2\/docs_category?post=8516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}