For all of its great administrative control panels and user interface elements, WordPress still has a simplistic approach to date selection, making users interact with a drop-down box and text fields to indicate the month, day, year, and time when a post or page is to be published. A much more interesting way to enter this type of information is to use a pop-up calendar that allows users to navigate through visual representations of each month and pick the desired date.
This recipe shows how to use the jQuery Datepicker script that is provided by default with WordPress to display a pop-up calendar to provide an easy way to select dates.
- Navigate to the WordPress plugin directory of your development installation.
- Create a new directory called
ch9-calendar-picker
along with a subdirectory calledcss
. - Visit https://www.jqueryui.com/download, toggle...