Aşağıdaki kodu
foreach($daysArray as $date=>$label){
echo '<option '.$daySelected.' value="'.$date.'">'.$label.'</option>';
$daySelected = null;
}Bununla değiştir
global $wp_locale;
foreach($daysArray as $date=>$label){
$tarih = strtotime($date);
$ayinadi= $wp_locale->get_month( date( 'm', $tarih) );
$tarih = date('d', $tarih) . ' '. $ayinadi. ' ' .date('Y', $tarih);
echo '<option '.$daySelected.' value="'.$date.'">'.$tarih.'</option>';
$daySelected = null;
}global $wp_locale;
foreach($daysArray as $date=>$label){
if ($date==$reservation_date) {
$daySelected = 'selected="selected"';
} else {
$daySelected = null;
}
$tarih = strtotime($date)
$ayinadi= $wp_locale->get_month( date( 'm', $tarih) );
$tarih = date('d', $tarih) . ' '. $ayinadi. ' ' .date('Y', $tarih);
echo '<option '.$daySelected.' value="'.$date.'">'.$label.'('.$tarih.')</option>';
}