</form>
</div>
<?php endif; ?>
- <?php if(have_posts()) : while(have_posts()): the_post();?>
- <?php the_content();?>
- <?php endwhile; else:?>
- <p><?php _e('Sorry, no results found.');?></p>
- <?php endif;?>
+ <?php if(have_posts()) : while(have_posts()): the_post();?>
+ <?php the_content();?>
+ <?php endwhile; else:?>
+ <p><?php _e('Sorry, no results found.');?></p>
+ <?php endif;?>
+
+ <?php if ( is_page( 116 ) ) { // On the media page ?>
+ <br>
+ <div id="blog-posts-over">
+ <h1>Press Releases</h1>
+ <?php $catquery = new WP_Query( 'cat=219&posts_per_page=5' ); ?>
+ <?php while($catquery->have_posts()) : $catquery->the_post(); ?>
+
+ <div class="row content blog-posts-container">
+ <!--<div class="small-11 small-centered columns"> -->
+ <?php $thumbnail = get_the_post_thumbnail($post->ID, 'blog-feed-front'); ?>
+ <?php if ($thumbnail) { ?>
+ <div class="small-12 medium-4 columns text-center blog-feed-imgs">
+ <?php echo $thumbnail; ?>
+ </div>
+ <div class="small-12 medium-8 columns blog-feed-contents">
+ <?php } else { ?>
+ <div class="small-12 columns blog-feed-content">
+ <?php } ?>
+ <article id="<?php the_ID()?>" <?php post_class()?>>
+ <header class="entry-header">
+ <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h1>
+ <span class="meta date">Posted on <?php the_time('F jS, Y') ?></span>
+ </header>
+ <?php echo (function_exists('the_advanced_excerpt'))
+ ? the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6')
+ : the_excerpt(); ?>
+
+ </article>
+ </div>
+ </div>
+ <?php endwhile; ?>
+ <?php wp_reset_postdata(); ?>
+ </div>
+ <?php } ?>
</div>
</div>
</div>