Create your first block
How to manage forms
Last updated
How to manage forms
Last updated
First, you need to enable the dynamic blocks feature to use it.
Go to the and find the "Content settings" section, enable dynamic blocks, and you're good to go.
To create a new template, navigate to the blocks list and click on the Create Block button.
A 5-step form will open:
Here you can choose the basic block settings, such as name, icon, keywords, and the block icon.
Finally, you can enable the block for one or more post types.
Declare block support for certain features, like text alignment or typography.
In some cases, you may want extra controls.
You can add all the custom controls you need, like text, checkboxes, or select fields.
You can use ACPT fields in your blocks in several ways.
If you want to display a shortcode, do the following:
For example, if you have a gallery field, you can do something like this:
Apply your custom CSS rules to the block.
For more info, .
This is the HTML body of the block. The syntax is fully supported.
Be aware to use the filter to properly render the field.
Instead, if you use acpt_meta_audio
as a variable, this internally calls the function, returning the field raw data as a string, an object, or an array.