Support » Plugins and Hacks » More Fields » [Plugin: More Fields] Date field default to today's date

  • 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/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: More Fields] Date field default to today's date’ is closed to new replies.