Custom Field: text

When adding custom fields you can use the text type to display a text field.

text Field Type

This is a text field where you can specify the number of accepted characters.

'name'         => 'property_field_text',         // Required: Custom field key.
'label'        => 'Text Field Label',            // Required: Field Label.
'type'         => 'text',                        // Required: Field Type.

'maxlength'    => '140',                         // Optional: Allowed character count.
'include'      => array( 'property', 'rental' ), // Optional: Post types or exclude for all.
'class'        => 'some-class-name',             // Optional. Custom class name.
'width'        => '1',                           // Optional. Field Width: 1, 2, 2-3, 3.
'help'         => 'Optional: Help text.',        // Optional: Help text.
'import'       => 'preserve',                    // Optional: Do not update when imported.

Custom text field example: