Here is the code in my index.php:
<?php get_header(); ?>
<div class="content-title">
Latest Entries
<a href="javascript: void(0);" id="mode"<?php if ($_COOKIE['mode'] == 'grid') echo ' class="flip"'; ?>></a>
</div>
<?php query_posts(array(
'post__not_in' => $exl_posts,
'paged' => $paged,
)
); ?>
<?php get_template_part('loop'); ?>
<?php wp_reset_query(); ?>
<?php get_template_part('pagination'); ?>
<?php get_footer(); ?>
And here is the code in pagination.php:
<?php if (get_option('paging_mode') == 'default') : ?>
<div class="pagination">
<?php previous_posts_link(__('Newer')); ?>
<?php next_posts_link(__('Older')); ?>
<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); ?>
</div>
<?php else : ?>
<div id="pagination"><?php next_posts_link(__('LOAD MORE')); ?></div>
<?php endif; ?>
This is what shows up:
<div id="pagination"></div>