[Plugin: WP-Paginate] WP Paginate Plugin Help
-
Using WP Paginate 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: https://billboardfamily.com/daily-t-shirt-blogs/
Here is the code on my page:
<?php include("header.php"); ?> <?php include ('sidebar_archive.php'); ?> <!-- BEGIN content --> <div id="content"> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="title">Archive for the <strong><?php single_cat_title(); ?></strong> Category</h2> <?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="post"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?></div> <!-- END post --> <?php endwhile; ?> <?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> <!-- END content --> <? get_footer(); ?>
- The topic ‘[Plugin: WP-Paginate] WP Paginate Plugin Help’ is closed to new replies.