"; //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)."
"; } ?>
(2021年07月08日 更新)
タイプ名 |
部屋 |
賃室面積 |
賃料 |
共益費 |
間取り図 |
---|---|---|---|---|---|
B type |
613号室 |
28.16㎡ |
66,000円 |
28,000円 |
|
B type |
712号室 |
28.16㎡ |
66,000円 |
28,000円 |
|
C type |
903号室 |
42.84㎡ |
98,000円 |
44,000円 |
|
A type |
201号室 |
21.76㎡ |
58,000円 |
22,000円 |


