<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sandeep Ghosh on Medium]]></title>
        <description><![CDATA[Stories by Sandeep Ghosh on Medium]]></description>
        <link>https://medium.com/@sandeepghosh29mar?source=rss-2ed719305173------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vQ5aKsm3LJnKzjGjRdFtNw.jpeg</url>
            <title>Stories by Sandeep Ghosh on Medium</title>
            <link>https://medium.com/@sandeepghosh29mar?source=rss-2ed719305173------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 20:14:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandeepghosh29mar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How To Create Gutenberg Blocks Using ACF?]]></title>
            <link>https://medium.com/yudiz-solutions/how-to-create-gutenberg-blocks-using-acf-d57a0e1d6f38?source=rss-2ed719305173------2</link>
            <guid isPermaLink="false">https://medium.com/p/d57a0e1d6f38</guid>
            <category><![CDATA[acf]]></category>
            <category><![CDATA[wordpress-web-development]]></category>
            <category><![CDATA[wordpress]]></category>
            <category><![CDATA[gutenberg-block]]></category>
            <category><![CDATA[acf-pro]]></category>
            <dc:creator><![CDATA[Sandeep Ghosh]]></dc:creator>
            <pubDate>Wed, 28 Aug 2024 05:15:54 GMT</pubDate>
            <atom:updated>2024-08-28T05:32:01.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Create Gutenberg Blocks Using ACF" src="https://cdn-images-1.medium.com/max/1024/1*4BaRH2BuJmse_-mwiIx6SQ.png" /></figure><h3><strong>Overview</strong></h3><p><strong>ACF Pro</strong> or <strong>Advanced Custom Field Pro</strong> is a WordPress plugin that creates additional meta fields or any custom fields for WordPress generally used for faster development of the website and better user understanding.</p><p>Custom Blocks are beneficial for the customization of a website but are complex to understand, ACF helps to create Gutenberg blocks in faster and more feasible ways and helps your dynamic fields work in the block editor ecosystem and have the ability to make inline solutions using ACF Blocks which are generally rendered from a PHP file or any callback function in WordPress themes.</p><p>For additional information, you can visit the website of <a href="https://www.advancedcustomfields.com/resources/"><strong>Advanced Custom</strong> <strong>Fields</strong></a> and to learn more about Gutenberg ACF Blocks you can visit here <a href="https://www.advancedcustomfields.com/resources/blocks/"><strong>ACF Blocks Documentation</strong>.</a></p><h3><strong>Topics</strong></h3><ul><li>What Are Gutenberg Blocks?</li><li>What are the Advantages Of Gutenberg Blocks?</li><li>Requirement For Getting Started with ACF Blocks</li><li>How To Create Gutenberg Blocks Using ACF?</li></ul><h3><strong>What Are Gutenberg Blocks?</strong></h3><p>It’s one of the layouts that helps users create custom layouts and, based on that, create a custom structure in the editor and customize their editor as needed. Gutenberg generally uses React in which developers can create the custom block as needed with the help of Gutenberg blocks.</p><p><strong>Example:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wtAyvdfUmedCcGc6" /></figure><p><a href="https://deliciousbrains.com/wordpress-gutenberg/"><strong>Source</strong></a></p><h3><strong>What are the Advantages Of Gutenberg Blocks?</strong></h3><ul><li>Makes your editor easy to handle and feasible to use and has a great user experience in terms of making a website by just moving around your block and being able to customize using simple controls.</li><li>It’s flexible and can be used for different kinds of content creation in WordPress.</li><li>Having consistent design is one of the major advantages of Gutenberg block which makes your website look more professional and SEO friendly.</li><li>It’s also time-saving which saves tons of time in creating complex layouts manually.</li><li>Increase in third-party plugins which help the editor to make the content as per need and feasible to use also make your website look beautiful and be able to add new features as per your requirement.</li></ul><h3><strong>Requirement For Getting Started With ACF Blocks</strong></h3><p><strong>Note: </strong>Before coming to any conclusion please verify you match the actual requirement properly. You can also refer to the documentation of <a href="https://www.advancedcustomfields.com/resources/"><strong>Advanced Custom Field</strong></a>.</p><ul><li>Firstly, you need to have the latest WordPress installation on your website to make further process. You can download your WordPress from here, <a href="https://wordpress.org/download/"><strong>WordPress Download Link</strong></a>, and for more detail, you can visit here: <a href="https://developer.wordpress.org/"><strong>WordPress Documentation</strong></a>.</li><li>For Creating ACF Blocks you need to purchase and install the pro version of the Advanced Custom Field. For purchasing you can visit here: <a href="https://www.advancedcustomfields.com/pro/"><strong>ACF Pro</strong></a>.</li></ul><h3><strong>How To Create Gutenberg Blocks Using ACF?</strong></h3><ul><li>After installing ACF Pro you need to register ACF Block like this in your child theme <strong>functions.php</strong>:</li></ul><pre>/** ADD CUSTOM ACF BLOCKS */<br>function acf_faqs_item_block()<br>{<br>// check function exists<br>if (function_exists(&#39;acf_register_block&#39;)) {<br>// register a faqs item block<br>acf_register_block(array(<br>&#39;name&#39; =&gt; &#39;faqs-item&#39;,<br>&#39;title&#39; =&gt; __(&#39;FAQs&#39;),<br>&#39;description&#39; =&gt; __(&#39;A custom block for faqs items.&#39;),<br>&#39;render_template&#39; =&gt; &#39;template-parts/blocks/block-faqs.php&#39;,<br>&#39;category&#39; =&gt; &#39;layout&#39;,<br>&#39;icon&#39; =&gt; &#39;admin-comments&#39;,<br>&#39;keywords&#39; =&gt; array(&#39;faqs&#39;),<br>));<br>}<br>}<br>add_action(&#39;acf/init&#39;, &#39;acf_faqs_item_block&#39;);</pre><ul><li>After registering ACF Block go to the child theme template parts and add the folder name as blocks. Maintaining the same folder structure as below:</li></ul><p>Child Theme Name &gt; template-parts &gt; blocks &gt;<strong>{your-custom-name}.php</strong></p><figure><img alt="Create Gutenberg Blocks Using ACF" src="https://cdn-images-1.medium.com/max/469/0*-I_8ZJ-Bi5L8ssP6" /></figure><ul><li>After creating add your HTML Or development data as needed and add that template to functions render_template as per the function shown above.</li><li>Here I’ve named my template <strong>block-faqs.php. </strong>And add your dynamic part as per the requirement.</li></ul><figure><img alt="Gutenberg Blocks Using ACF Step By Step" src="https://cdn-images-1.medium.com/max/862/0*PyOlH5J96ZjdFyqE" /></figure><ul><li>Once you have completed your HTML dynamic part go to the dashboard Of your WordPress. And add data as per below.</li></ul><p><strong>Dashboard &gt; Custom Fields &gt; Add New Custom Fields</strong></p><figure><img alt="New Custom Fields" src="https://cdn-images-1.medium.com/max/1024/0*VmrC_4jm5FJzwozH" /></figure><ul><li>After adding that it shows your block wherever needed in any Gutenberg editor as per the below image.</li></ul><figure><img alt="Add Title" src="https://cdn-images-1.medium.com/max/1024/0*xIdw1N7dlf5t9t0y" /></figure><ul><li>Once, added you can see there are many settings you can adjust as needed. You can check the below image for reference.</li></ul><figure><img alt="Title" src="https://cdn-images-1.medium.com/max/1024/0*7WflW-QBwVWNZ0MB" /></figure><ul><li>That’s it your ACF Gutenberg Block is completed, now customize your website and enjoy✌️.</li><li>Also, there’s an alternate solution for the same you can review here and can implement by using <a href="https://www.advancedcustomfields.com/resources/blocks/"><strong>ACF Blocks Using JSON</strong></a>.</li></ul><h3><strong>Conclusion</strong></h3><p>Let’s have a quick overview of what we’ve learned:</p><ol><li>Set up <a href="https://wordpress.org/download/"><strong>WordPress</strong></a> in your system.</li><li>Install the <a href="https://www.advancedcustomfields.com/pro/"><strong>ACF Pro</strong></a> plugin in WordPress.</li><li>Add specific code in your <strong>functions.php</strong> or register the ACF block.</li><li>Add the template file in the template parts and give your custom template a name.</li><li>Add your Custom Fields.</li><li>And render your custom block wherever needed🤘.</li></ol><p>I hope this blog helps you to understand ACF Blocks Creation in Gutenberg Block Editor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d57a0e1d6f38" width="1" height="1" alt=""><hr><p><a href="https://medium.com/yudiz-solutions/how-to-create-gutenberg-blocks-using-acf-d57a0e1d6f38">How To Create Gutenberg Blocks Using ACF?</a> was originally published in <a href="https://medium.com/yudiz-solutions">Yudiz Solutions</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>