c.note
Member
Posted 3 months ago #
I've used the More Fields to create a custom date field for a post type known as events. When the user creates a new event I'd like the date field to default to the current date, basically I want to do this so a user can't create an event that has no date.
Trying to figure out the cleanest way to do this? Any ideas/thoughts will be greatly appreciated, thanks.
http://wordpress.org/extend/plugins/more-fields/
c.note
Member
Posted 3 months ago #
For now I've just added a bit of jQuery using the admin_footer hook seems to do the job. It would be cool if this was made a setting, in the way you can add list items for a more fields list type it would be good to have an option to default the date to the current date or not if the date wasn't meant to be mandatory.