質問編集履歴
1
ソースを少し変更しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,17 +12,19 @@
|
|
12
12
|
|
13
13
|
```ここに言語名を入力
|
14
14
|
|
15
|
-
$date1 = date("Y年m月d日", get_post_meta($post->ID, 'wpcf-date1', true));
|
15
|
+
$date1 = date("Y年m月d日", strtotime(get_post_meta($post->ID, 'wpcf-date1', true)));
|
16
16
|
|
17
|
-
$date2 = date("Y年m月d日", get_post_meta($post->ID, 'wpcf-date2', true));
|
17
|
+
$date2 = date("Y年m月d日", strtotime(get_post_meta($post->ID, 'wpcf-date2', true)));
|
18
|
+
|
19
|
+
|
18
20
|
|
19
21
|
if($date2 != ''){
|
20
22
|
|
21
|
-
$i
|
23
|
+
$detail .= '<div class="detail">日時:'.$date1.' ~ '.$date2.'</div>';
|
22
24
|
|
23
25
|
}else{
|
24
26
|
|
25
|
-
$i
|
27
|
+
$detail .= '<div class="detail">日時:'.$date1.'</div>';
|
26
28
|
|
27
29
|
}
|
28
30
|
|