<?php $count = 0;
// The Query
$the_query = new WP_Query( array( 'posts_per_page'=> 5 ) );
?>
<?php if ( $the_query->have_posts() ) : ?>
<div id="main_navigation_top">
<?php wp_pagenavi(); ?>
</div>
<?php // The Loop
while ( $the_query->have_posts() ) : $the_query->the_post();
$count++;
?>
<?php if ( $count == 1 ) : ?>
<div id="featured">
<div id="post_header">
<span id="date">
<span id="top">
<p>
<span id="month"><?php the_time('M') ?></span>
<span id="day"><?php the_time('j') ?></span>
<span id="year"><?php the_time('Y') ?></span>
</p>
</span>
<span id="bottom">
<p>
<span id="day_name"><?php the_time('l') ?></span>
</p>
</span>
</span>
<span id="title">
<h2 id="main_head"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
</span>
</div>
<span style="clear: both;"></span>
<div id="categories">
in <?php the_category(', ') ?>
</div>
<span style="clear: both;"></span>
<div id="post">
<?php
$content = get_the_content();
$trimmed_content = wp_trim_words( $content, 300, ' [...]' );
echo $trimmed_content;
?>
</div>
<div id="more">
<p><a href="<?php echo get_permalink(); ?>">READ MORE</a></p>
</div>
</div>
<div id="main_posts">
<?php elseif (++$i % 2) : ?>
<div id="post_left">
<div id="post_header">
<span id="date">
<span id="top">
<p>
<span id="month"><?php the_time('M') ?></span>
<span id="day"><?php the_time('j') ?></span>
<span id="year"><?php the_time('Y') ?></span>
</p>
</span>
<span id="bottom">
<p>
<span id="day_name"><?php the_time('l') ?></span>
</p>
</span>
</span>
<span id="title">
<h2 id="main_head"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
</span>
</div>
<div id="categories">
in <?php the_category(', ') ?>
</div>
<div id="post">
<?php
$content = get_the_content();
$trimmed_content = wp_trim_words( $content, 50, ' [...]' );
echo $trimmed_content;
?>
</div>
<div id="more">
<p><a href="<?php echo get_permalink(); ?>">READ MORE</a></p>
</div>
</div>
<?php else : ?>
<div id="post_right">
<div id="post_header">
<span id="date">
<span id="top">
<p>
<span id="month"><?php the_time('M') ?></span>
<span id="day"><?php the_time('j') ?></span>
<span id="year"><?php the_time('Y') ?></span>
</p>
</span>
<span id="bottom">
<p>
<span id="day_name"><?php the_time('l') ?></span>
</p>
</span>
</span>
<span id="title">
<h2 id="main_head"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2>
</span>
</div>
<div id="categories">
in <?php the_category(', ') ?>
</div>
<div id="post">
<?php
$content = get_the_content();
$trimmed_content = wp_trim_words( $content, 50, ' [...]' );
echo $trimmed_content;
?>
</div>
<div id="more">
<p><a href="<?php echo get_permalink(); ?>">READ MORE</a></p>
</div>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>