Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

Skip to main content

Textarea

The textarea field creates a simple textarea (multiline) input. You can use this field for entering a paragraph of text.

Screenshots

Settings

Besides the common settings, this field has the following specific settings, the keys are for use with code:

NameKeyDescription
PlaceholderplaceholderThe placeholder text. Optional.
ColumnscolsNumber of columns. Optional. Default 60.
RowsrowsNumber of rows. Optional. Default 4.

Data

This field saves the entered value into the database.

If the field is cloneable, then the value is stored as a serialized array in a single row in the database.

caution

Meta Box removes all scripts and iframes from the value. If you want to enter scripts (like Google Analytics) or embed videos, then you need to disable sanitization.

Template usage

Displaying the value:

<section>
<h2>About Us</h2>
<p><?php rwmb_the_value( 'field_id' ) ?></p>
</section>

Getting the value:

<section>
<h3>About Us</h3>
<?php $value = rwmb_meta( 'field_id' ) ?>
<p><?= $value ?></p>
</section>

Auto adding paragraphs to the text:

<?php $value = rwmb_meta( 'field_id' ) ?>
<?= wpautop( $value ) ?>

Parse shortcodes:

<?php $value = rwmb_meta( 'field_id' ) ?>
<?= do_shortcode( $value ) ?>

Parse blocks:

<?php $value = rwmb_meta( 'field_id' ) ?>
<?= do_blocks( $value ) ?>

Displaying cloneable values:

<?php $values = rwmb_meta( 'field_id' ) ?>
<?php foreach ( $values as $value ) : ?>
<p><?= $value ?></p>
<?php endforeach ?>