The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Change date field to input type=date


This Discussion is public


Currently a date field generates an html input of type='text'. However I want a real date input - that is an input with type='date'.

Is this somehow hookable, or do I have to create my own field? As described in "Add a new field"?

Thanks, Daniel

You can certainly try it. Keep in mind that date input types are only supported by HTML5 and not every browser supports them. Older browsers will render them as text.

Also, WordPress stores the content as text. So even if you use the date type as an input, you'll have to handle the conversions to display them in views or reports yourself.

Discussion closed.