Sorry, guess I should have included pagination.
Here is the code with the pagination calling function:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args= array(
'post-type' => 'post',
'paged' => $paged
);
query_posts($args);
if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part( 'includes/post-templates/entry', get_post_format() ); ?>
<?php endwhile; endif;
//Reset Query
wp_reset_query();
?>
</div><!--/posts container-->
</div><!--/span_9-->
</div><!--/row-->
<div class="pagination-wrapper">
<?php theme_pagination(); ?>
</div>
And here is the actual pagination function code:
function theme_pagination($pages = '')
{
global $paged;
if(is_page_template('/page-templates/page-directory.php'))
{
$paged = intval(get_query_var( 'page' ));
}
if(empty($paged))$paged = 1;
$prev = $paged - 1;
$next = $paged + 1;
$range = 2; // only change it to show more links
$showitems = ($range * 2)+1;
if($pages == '')
{
global $wp_query;
$pages = $wp_query->max_num_pages;
if(!$pages)
{
$pages = 1;
}
}
if(1 != $pages)
{
echo "<div id='pagination'>";
echo ($paged > 2 && $paged > $range+1 && $showitems < $pages)? "<a href='".get_pagenum_link(1)."' class='btn'><<</a> ":"";
echo ($paged > 1 && $showitems < $pages)? "<a href='".get_pagenum_link($prev)."' class='btn'><</a> ":"";
for ($i=1; $i <= $pages; $i++)
{
if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems ))
{
echo ($paged == $i)? "<a href='".get_pagenum_link($i)."' class='btn current'>".$i."</a> ":"<a href='".get_pagenum_link($i)."' class='btn'>".$i."</a> ";
}
}
echo ($paged < $pages && $showitems < $pages) ? "<a href='".get_pagenum_link($next)."' class='btn'>></a> " :"";
echo ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) ? "<a href='".get_pagenum_link($pages)."' class='btn'>>></a> ":"";
echo "</div>";
}
}
Thanks again for your help so far!