Textarea (multi-line text) fields.
-
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' ) ); } ); -
Example 2: Customize TextArea Size
This example sets the
rowsandcolsattributes on the field to define the textarea size. Alternatively, you can set thestyleattribute 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' ) ); } );

