Skip to content

Instantly share code, notes, and snippets.

@ahaywood
Created September 15, 2013 15:33
Show Gist options
  • Save ahaywood/6571806 to your computer and use it in GitHub Desktop.
Save ahaywood/6571806 to your computer and use it in GitHub Desktop.
Date Picker for Custom Post Type Goes inline in functions.php From http://wordpress.stackexchange.com/questions/15656/add-a-jquery-datepicker-to-custom-field-in-post-edit
<script>jQuery(document).ready(function(){jQuery( "input[name='chb_homes_for_sale_specifics_dateavail']" ).datepicker({ dateFormat: 'DD, d MM, yy', numberOfMonths: 3 }); jQuery( "#ui-datepicker-div" ).hide();});</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment