分譲地情報

          

// [mh_custom_house] で「分譲地情報見出し + section-lots + housing一覧(6件)」を表示
function mh_custom_house_shortcode($atts) {
$atts = shortcode_atts([
‘per_page’ => 6,
‘terms’ => ‘custom,works’, // housing_category のslug
], $atts, ‘mh_custom_house’);

ob_start();
?>

分譲地情報

‘housing’,
‘posts_per_page’ => (int)$atts[‘per_page’],
‘tax_query’ => [
[
‘taxonomy’ => ‘housing_category’,
‘field’ => ‘slug’,
‘terms’ => $terms,
‘operator’ => ‘AND’,
],
],
]);

if (!empty($works)) : ?>

Works



// [mh_custom_house] で「分譲地情報見出し + section-lots + housing一覧(6件)」を表示 function mh_custom_house_shortcode($atts) { $atts = shortcode_atts([ ‘per_page’ => 6, ‘terms’ => ‘custom,works’, // housing_category のslug ], $atts, ‘mh_custom_house’); ob_start(); ?>

分譲地情報

‘housing’, ‘posts_per_page’ => (int)$atts[‘per_page’], ‘tax_query’ => [ [ ‘taxonomy’ => ‘housing_category’, ‘field’ => ‘slug’, ‘terms’ => $terms, ‘operator’ => ‘AND’, ], ], ]); if (!empty($works)) : ?>

Works