Fields / TextArea

Read More: Fieldmanager_TextArea

Textarea (multi-line text) fields.

  1. Example 1: Basic TextArea Field

    add_action( 'fm_post_post', function() {
    	$fm = new Fieldmanager_TextArea( array(
    		'name' => 'demo-field',
    	) );
    	$fm->add_meta_box( 'TextArea Demo', array( 'post' ) );
    } );
  2. Example 2: Customize TextArea Size

    This example sets the rows and cols attributes on the field to define the textarea size. Alternatively, you can set the style attribute to define the size using inline CSS.

    add_action( 'fm_post_post', function() {
    	$fm = new Fieldmanager_TextArea( array(
    		'name' => 'demo-field',
    		'attributes' => array(
    			'rows' => 3,
    			'cols' => 30,
    		),
    	) );
    	$fm->add_meta_box( 'TextArea Demo', array( 'post' ) );
    } );