Support » Plugin: Custom Field Template » [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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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)) . “”;

    custom-field-template.php line 1834

    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

    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 !

    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.