
The Color Picker field can store a HEX color value like #101010. It displays as text but can be used with inline styles.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: Color Picker.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Input Type
You can choose the input type to use for the field. Available options are:- Checkbox
- Radio Buttons
- Drop Down
- Yes Label
This is the text to use in the Input and it is also used on Display. - No Label
This is the text to use in the Input and it is also used on Display.
How to Display
Display with a Shortcode
[pods field="my_color_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_color_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_color_field' );