Skip to content
Controls

Rich Text (WYSIWYG)

Rich Text control provides a native WordPress editor interface for formatted text content. It supports basic text formatting like bold, italic, and links.

Rich Text control interface

Control Settings

  • Multiline - Allow paragraph tags in the output

Usage

Basic Output

PHP
<div class="content">
  <?php echo wp_kses_post( $attributes['control_name'] ); ?>
</div>
Handlebars
<div class="content">
  {{{control_name}}}
</div>

Post Meta

Post Meta
<div class="content">
  <?php echo wp_kses_post( get_lzb_meta( 'control_meta_name' ) ); ?>
</div>

Use wp_kses_post() in PHP to safely output HTML content while preventing XSS attacks.

When using Handlebars, use triple curly brackets {{{ and }}} to output HTML content properly.

Was this article helpful?