term_id; } if (is_singular('rental') || is_singular('sale')) { include 'blocks/apartments/_apartment_features.php'; } // Show content if: if ( // Building page is_tax('building') || // Post is published and not passsword protected (get_post_status() == 'publish') && !post_password_required() && !is_404() || // Post is private and user is logged in (get_post_status() == 'private') && is_user_logged_in() || // Post is password protected and user is logged in post_password_required() && is_user_logged_in() || // Draft is previewed by a user who is logged in is_preview() ) { while (have_rows('blocks', $building_tax)) { the_row(); $disable_layout = get_sub_field('disable_layout'); $css_class = get_sub_field('css_class'); if (!$disable_layout) { // Section if (get_row_layout() == 'section') { include 'blocks/section.php'; } // Blog elseif (get_row_layout() == 'blog') { include 'blocks/blog.php'; } // Apartments elseif (get_row_layout() == 'apartments') { include 'blocks/apartments.php'; } } } } // Don't show content if: else { // Post doesn't exist or is private/draft/pending and user isn't logged in - show a 404 if (is_404()) { $content = '

Sorry, we couldn’t find this page!

We apologise for the inconvenience.

It’s possible that the page was moved or perhaps you typed the wrong address.

Go to the home page »

'; } // Post is password protected and user isn't logged in - show the password form else { $content = get_the_content(); } echo '
' . $content . '
'; } ?>

Apply for this Rental Property

Your Details:
Current Residence:
Employment:
= $file_access_level || current_user_can('administrator') || current_user_can('editor')) : ?> $title"; } ?>