I found a code to loop through pages, and display them as check boxes in the admin, but I need to be able to loop through the ‘buildings’ custom post types instead.
foreach ($pages as $page) {
if(in_array($page->ID, $value)){
echo("<span class='check'><input type='checkbox' class='checkbox' value='$page->ID' checked='checked' name='$page->ID' id='$page->ID'/><label for='$page->ID'>$page->post_title</label></span>");
}else{
echo("<span class='check'><input type='checkbox' class='checkbox' value='$page->ID' name='$page->ID' id='$page->ID'/><label for='$page->ID'>$page->post_title</label></span>");
}
}