Using the WP Paginate plugin on my archives.php page, but it is not working. When I look at the page source, I can see the <div is=“navigate”> code, and then nothing else. Can you help me out with this?
Example page: http://billboardfamily.com/daily-t-shirt-blogs/
Plugin URL: http://wordpress.org/extend/plugins/wp-paginate/
Here is the code on my page:
<?php include("header.php"); ?>
<?php include ('sidebar_archive.php'); ?>
<!-- BEGIN content -->
<div id="content">
<div id="archives">
<div class="archive-title">
<p>Blogs: <?php single_cat_title(); ?></p>
</div>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class="title">Posts Tagged <strong><?php single_tag_title(); ?></strong></h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="title">Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="title">Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="title">Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="title">Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="title">Blog Archives</h2>
<?php } ?>
<?php
if (have_posts()) :
while (have_posts()) : the_post();
?>
<!-- BEGIN post -->
<div class="archive-posts"><?php the_time('m/d/y'); ?> -
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</div>
<!-- END post -->
<?php endwhile; ?>
<?php if(function_exists('wp_paginate')) {
wp_paginate();
} ?>
<?php else : ?>
<div class="notfound">
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
</div>
</div>
<!-- END content -->
<?php get_footer(); ?>