Title: Custom Field Type : Duration
Last modified: April 23, 2021

---

# Custom Field Type : Duration

 *  Resolved [poirazis](https://wordpress.org/support/users/poirazis/)
 * (@poirazis)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-field-type-duration/)
 * Hey!
    I am in need of a Field of Type : Duration which will hold as the name 
   suggests a value of time duration.
 * I can learn how to create a field type by looking at how the Core field types
   were created, but is there some starting point / documentation / tutorial on 
   how i will register my Custom Field Types to put them to use ? Will this be a
   plugin or a Pods Extension that will add this (and any other) Custom Field Types?
 * Thank you for your great work!
    M.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-field-type-duration/#post-14366113)
 * Hi [@poirazis](https://wordpress.org/support/users/poirazis/)
 * Not sure, but don’t you mean the time field?
 * Cheers, Jory
 *  Thread Starter [poirazis](https://wordpress.org/support/users/poirazis/)
 * (@poirazis)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-field-type-duration/#post-14375579)
 * The field would hold an “event” duration, so no the 24H time field wouldn’t do.
   The duration of the event could be something like “2d 3hr 48min”. The field value
   would be stored in seconds ( and when displayed the seconds would be presented
   as human readable duration ). The exercise would be to learn how to build Custom
   Field Types, and this would be my first attempt!
 * Thank you Jory!
    M.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/custom-field-type-duration/#post-14378327)
 * Hi [@poirazis](https://wordpress.org/support/users/poirazis/)
 * Right! Sounds to me like a nice addition to our fields.
    Keep in mind though 
   that we are on the verge of releasing Pods 2.8 which totally refactored the Pods
   field UI etc. I think it would be best to create a feature request on GitHub 
   and start a discussion there. I can notify Scott (our lead dev) to take a look
   and hopefully give you some pointers to start. [https://github.com/pods-framework/pods/issues/new?assignees=&labels=Type%3A+Enhancement&template=feature_request.md&title=](https://github.com/pods-framework/pods/issues/new?assignees=&labels=Type%3A+Enhancement&template=feature_request.md&title=)
 * Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Field Type : Duration’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/custom-field-type-duration/#post-14378327)
 * Status: resolved