/
Working with ACF Blocks

Working with ACF Blocks

In WordPress, Blocks are a page element that can be utilized to display data in a prespecified format. Using the ACF plugin, we are able to display data in Custom Blocks that we can create ourselves. In the example below, we are able to select data in the form of images, text, and URLs to display on our page.

 

bex.JPG

 

However, these custom blocks can take a wide variety of different forms of data. This can be specified in the Field Groups sections under the ACF tab on the left sidebar, which allows us to create and edit custom blocks

 

 

fg.JPG

 

The way this data is displayed on the page is decided by the accompanying code. This code can be found in the Theme Editor section under Appearance. Once here, navigate to the template-parts folder and then the blocks folder. This should contain a list of PHP files, which contain the accompanying format code for each of these custom blocks. This code allows you to modify how inserted data elements are presented.

 

 

How to use AFC and custom code to create a resource group/post type in WordPress

 

Related content

External Resources CSS
External Resources CSS
More like this
WP Engine How To
WP Engine How To
Read with this
Accordions
Accordions
More like this
Popup Maker for Modals
Popup Maker for Modals
More like this