Title: [Plugin: Custom Field Template] problems with datePicker
Last modified: August 20, 2016

---

# [Plugin: Custom Field Template] problems with datePicker

 *  [webcane](https://wordpress.org/support/users/webcane/)
 * (@webcane)
 * [14 years ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/)
 * jQuery.datepicker does not have options named **startDate** and **endDate**, 
   instead it using minDate and maxDate.
    it means what You need to change a few
   lines of Your code in custom-field-template.php:
 *     ```
       if ( $startDate ) $out .= "startDate: " . stripcslashes(trim($startDate));
       			if ( $startDate && $endDate ) $out .= ",";
       			if ( $endDate ) $out .= "endDate: " . stripcslashes(trim($endDate)) . "";
       ```
   
 * to
 *     ```
       if ( $startDate ) $out .= "minDate: " . stripcslashes(trim($startDate));
       			if ( $startDate && $endDate ) $out .= ",";
       			if ( $endDate ) $out .= "maxDate: " . stripcslashes(trim($endDate)) . "";
       ```
   
 * [http://wordpress.org/extend/plugins/custom-field-template/](http://wordpress.org/extend/plugins/custom-field-template/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Fulgence Ridal](https://wordpress.org/support/users/theeponymus/)
 * (@theeponymus)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760330)
 * I have problem with startdate too but
    where did you find ?
 * if ( $startDate ) $out .= “startDate: ” . stripcslashes(trim($startDate));
    if(
   $startDate && $endDate ) $out .= “,”; if ( $endDate ) $out .= “endDate: ” . stripcslashes(
   trim($endDate)) . “”;
 *  Thread Starter [webcane](https://wordpress.org/support/users/webcane/)
 * (@webcane)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760331)
 * custom-field-template.php line 1834
 *  [Fulgence Ridal](https://wordpress.org/support/users/theeponymus/)
 * (@theeponymus)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760332)
 * hmmm , i have version Version 2.0.4 of this plugin and i have no theses lines
   in 1834 …
    can you tell me which version do you use ?
 * thx very much
 *  [Fulgence Ridal](https://wordpress.org/support/users/theeponymus/)
 * (@theeponymus)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760333)
 * OK /
    I just discover that it is simply a chrome problem and startDate and endDate
   work perfectly with firefox and explorer …
 * thx for your help !
 *  Thread Starter [webcane](https://wordpress.org/support/users/webcane/)
 * (@webcane)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760334)
 * custom-field-template.2.0.4.zip\custom-field-template\custom-field-template.php:
   1834 of 3996 lines

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Custom Field Template] problems with datePicker’ is closed to
new replies.

 * ![](https://ps.w.org/custom-field-template/assets/icon-256x256.png?rev=1966286)
 * [Custom Field Template](https://wordpress.org/plugins/custom-field-template/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-field-template/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-field-template/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-field-template/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-field-template/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-field-template/reviews/)

## Tags

 * [datepicker](https://wordpress.org/support/topic-tag/datepicker/)

 * 5 replies
 * 2 participants
 * Last reply from: [webcane](https://wordpress.org/support/users/webcane/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-field-template-problems-with-datepicker/#post-2760334)
 * Status: not resolved