WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
problems with datePicker (6 posts)

  1. webcane
    Member
    Posted 2 years ago #

    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/

  2. Theeponymus
    Member
    Posted 2 years ago #

    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)) . "";

  3. webcane
    Member
    Posted 2 years ago #

    custom-field-template.php line 1834

  4. Theeponymus
    Member
    Posted 2 years ago #

    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

  5. Theeponymus
    Member
    Posted 2 years ago #

    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 !

  6. webcane
    Member
    Posted 2 years ago #

    custom-field-template.2.0.4.zip\custom-field-template\custom-field-template.php:1834 of 3996 lines

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic