WordPress.org

Ready to get started?Download WordPress

Forums

More Fields
Date field default to today's date (2 posts)

  1. c.note
    Member
    Posted 3 years 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/

  2. c.note
    Member
    Posted 3 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic