Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

Blocks

Let a block hold other blocksPro

1 minute to read Updated 1 week ago Needs UglyFields Pro

  1. Make a block, and in the first question choose A block that holds other blocks (or, on its screen, turn on Allow blocks inside).
  2. Optionally choose Which blocks are allowed, Blocks it starts with, and Lock those blocks.
  3. In render.php, say where they go:
PHP
<div class="section">
	<?php ugly_inner_blocks(); ?>
</div>

See Blocks inside the block.

Did this article answer your question?