<?php 
    }
}
wp_reset_postdata();
?>
</section>



<?php 
$loop = new WP_Query(array('post_type' => 'messages'));
if ($loop->have_posts()) {
    while ($loop->have_posts()) {
        $loop->the_post();
        $message_location_match = TAX_LOCATION == TRUE && location_match($post, $home_post) == true;
        if ($message_location_match || TAX_LOCATION == FALSE) {
            ?>

            <?php 
            get_template_part('template-parts/content', 'message');
            ?>

        <?php 
        }
    }
}
?>






    <!-- MESSAGE-SECTION -->

        <?php 
$loop = new WP_Query(array('post_type' => 'messages'));
if ($loop->have_posts()) {
    while ($loop->have_posts()) {
        $loop->the_post();
        ?>

            <?php 
        $message_location_match = TAX_LOCATION == TRUE && location_match($post, $postParent) == true;
        if ($message_location_match || TAX_LOCATION == FALSE) {
            get_template_part('template-parts/content', 'message');
        }
    }
}
?>



    <!-- PEOPLE-SECTION -->
    <section class="section section__people">
        <div class="section__inner-wrapper">

            <span id="<?php 
echo row_slug();