"; //var_dump($typenames); //print "
"; /// デバッグ用 //print "
category: ".$posttype; //print "
taxonomy: ".$taxonomy; $args = array( 'post_type' => $posttype, 'numberposts' => -1, 'tax_query' => array( array( 'taxonomy' => $taxonomy, 'terms' => $typenames, 'field' => 'slug', 'operator' => 'IN' ), 'relation' => 'AND' ), ); // 上記の条件を元に現在のtaxonomy、term値を取得する // 1.現在のページタイプ 2. taxonomyに所属する全てのスラッグからのterm $tterms = get_posts( $args ); //print "件数: ".count($tterms); //print "
"; //var_dump($tterms); //print "
"; // 日付比較用 $last_modified = 0; $tmp = array(); foreach ($tterms as $key1 => $term) { foreach ($term as $key2 => $t) { if ($key2=='post_modified') { array_push($tmp, (int) strtotime($t)); } } } // 日付けの比較 foreach($tmp as $t) { if ($last_modified < $t) { $last_modified = $t; } //print "
".date("Y-m-d", $t)."
"; } ?>
(2022年05月21日 更新)
タイプ名 |
部屋 |
賃室面積 |
賃料 |
共益費 |
間取り図 |
---|---|---|---|---|---|
C type |
713号室 |
30.49㎡ |
76,000円 |
20,000円 |
|
B type |
502号室 |
38.19㎡ |
72000円 |
15,000円 |
|
C type |
313号室 |
30.49㎡ |
68,000円 |
20,000円 |
|
C type |
513号室 |
30.49㎡ |
72,000円 |
20,000円 |
|
B type |
403号室 |
38.19㎡ |
70000円 |
15,000円 |
|
A type |
709号室 |
20.80㎡ |
55000円 |
14000円 |


