Custom Field: decimal
When adding custom fields you can use the decimal type to display a field.
decimal Field Type
This will display a field that accepts numbers with a decimal point.
'name' => 'property_field_number', // Required: Custom field key. 'label' => 'Decimal Field Label', // Required: Field Label. 'type' => 'decimal', // Required: Field Type. 'maxlength' => '4', // 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 decimal field example:
Field selected: