这可以在自定义分类法的帮助下轻松完成您只需创建三个分类法Year、Rooms和Parking space,然后您就可以根据query\\u帖子中的任何值筛选结果
add_action(\'init\', \'custom_taxonomy\');
function custom_taxonomy(){
register_taxonomy("years", \'post_type_slug\', array("hierarchical" => true, "label" => "Years", "singular_label" => "Years","rewrite" => true) );
register_taxonomy("rooms", \'post_type_slug\', array("hierarchical" => true, "label" => "Rooms", "singular_label" => "Rooms","rewrite" => true) );
register_taxonomy("parking", \'post_type_slug\', array("hierarchical" => true, "label" => "Parkings", "singular_label" => "Parking","rewrite" => true) );
}