<?php 
$archive_posts = get_posts(array('posts_per_page' => 100, 'post_type' => $post_type));
?>

        <?php 
if (!empty($archive_posts)) {
    ?>
        <ol class="archive__list">
            <?php 
    foreach ($archive_posts as $post) {
        ?>
                <?php 
        $content = VACTemplate::ACF_featured_content($post->ID);
        $content['title'] = $post->post_title;
        $content['permalink'] = get_the_permalink($post->ID);
        $image = VACTemplate::featured_image($post->ID);
        $year = get_the_terms($post->ID, 'vac-year');
        $year = isset($year[0]->name) ? $year[0]->name : '';
        $item_terms = VACTemplate::post_terms($post->ID);
        ?>
                <li class="archive-item" data-categories="<?php 
        echo $item_terms;
        ?>
">
                    <a class="archive-item__link" href="<?php 
        echo $content['permalink'];
        ?>
">
                    <figure class="archive-item__figure">
                        <?php 
        echo VACTemplate::image($image);
        <h2 class="featured-posts__title">
            <?php 
echo $title;
?>
        </h2>

        <?php 
if (!empty($posts)) {
    ?>
        <ol class="featured-posts__list">
            <?php 
    foreach ($posts as $post) {
        ?>
            <?php 
        $link = $post['vac_featured_post_link'][0];
        $image = VACTemplate::featured_image($link);
        $text = VACTemplate::featured_title($link);
        $excerpt = VACTemplate::featured_excerpt($link);
        ?>
            <li class="featured-post">
            <a class="featured-post__link" href="<?php 
        echo get_the_permalink($link);
        ?>
">
                <div class="element element--narrow">
                    <div class="featured-post__content">
                        <figure class="featured-post__figure">
                           <?php 
        echo VACTemplate::image($image);
        ?>
                            <figcaption class="featured-post__caption">