
The Time field can store a time value in various formats.
Contents
Quick Start
- Fill out the Basic Field Settings (Label, Description, and Field Name)
- Select Field Type: Time.
- Click Save New Field (or Save Field if you’re updating an existing field) to save your field configuration.
Settings
- Time Format Type
The options available are:- WordPress default
- 12 hour
- Time Format (12 hour)
The options available for time format (12 hour) are:- 11:37 AM
- 11:37:22 AM
- 11:37 AM
- 11:37:22 AM
- 11:37am
- 11:37am
- 11:37
- 11:37:22
- 11:37
- 11:37:22
- Time Format (12 hour)
- 24 hour
- Time Format (24 hour)
The options available for time format (24 hour) are:- 11:37 AM
- 11:37:22 AM
- Time Format (24 hour)
- Custom
- Time Format for Display
Enter a custom time format to use. - Time Format for Input
Enter a custom JS time format to use.
- Time Format for Display
- Allow empty value
When enabled, this will allow an empty value to be saved. Otherwise, the current time will be used. - Enable HTML5 Input Field
When enabled, this will render the field withtype="time"using the default browser interface. Based on your needs, the browser interface may be a better experience especially for mobile devices. For more details on HTML5 types, you can read the documentation at W3 on Validating Common Input.
Custom PHP Time Formats
You’ll find this information documented on the Date / Time Field doc page.
Custom JS Time Formats for Input
You’ll find this information documented on the Date / Time Field doc page.
How to Display
Display with a Shortcode
[pods field="my_time_field"]
Display with PHP: pods_field_display()
<?php echo pods_field_display( 'my_time_field' );
Display with PHP: $pod->display()
<?php $pod = pods(); echo $pod->display( 'my_time_field' );