ACF integration

YouTube Video Placeholder



Create a Simple Text Block

Start with a basic text block.

You can copy any Funulo block code snippet you’ve already created.

<div <?php echo get_block_wrapper_attributes(); ?>>
    <?php echo esc_html( $attributes['text'] ?? '' ); ?>
</div>



Paste It into the Funulo Extra Field

In your Funulo Extra Field, paste the block code you want to keep.

This ensures that your block preserves all the default classes, inline styles, and attributes that Funulo manages automatically.



Add the Field to Your Template

Go to

Appearance → Editor → Templates → Single Post

Add your Extra Field block inside the template where you want the content to appear.

You’ll immediately see a live preview — even before saving.



Render Only When the Field Has a Value

When a post has no value set for that field, Funulo won’t render it at all.

This keeps your output clean and avoids empty markup.

<?php if ( $field_value ) : ?>
    <div <?php echo get_block_wrapper_attributes(); ?>>
        <?php echo esc_html( $field_value ); ?>
    </div>
<?php endif; ?>