[plugin : WP-Paginate] works on my index.php but not on category specific page
-
Hello,
Hoping someone can help me with this, pagination is working fine on the master blog page
https://sitepreview.annscott.co.uk/blog-2 but not on a category specific page
https://sitepreview.annscott.co.uk/clientsHere is my code… going mad with this one
<?php /** *@desc A page. See single.php is for a blog post layout. Template Name: clients2 */ get_header(); if (have_posts()): ?> <?php include (TEMPLATEPATH . '/nav2.php'); ?> <div id="maincontent"> <div id="intro"> <h1>CLIENTS</h1> <p class="introcopy">content here.</p> <p class="bottomheader"> </p> </div> <div id="secondaryContent"> <?php include (TEMPLATEPATH . '/testsidebar.php'); ?> </div> <ul id="destinations"> <?php query_posts('posts_per_page=5&&category_name=clients&orderby=title&order=asc'); ?> <?php while (have_posts()) : the_post(); ?> <li id="post-<?php the_ID(); ?>"> <div class="imagehold2"> <?php the_content(__('(more...)')); ?></div> <span class="desheader"><?php the_title(); ?></span> <?php the_excerpt(); ?> </li> <?php endwhile; ?> </ul> <?php else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <div id="pagination" class="noline"> <?php if(function_exists('wp_paginate')) { wp_paginate(); } ?> <div class="top"><a href="#">back to top</a></div> </div> <?php wp_reset_query(); ?> <?php get_footer(); ?>
https://www.ads-software.com/extend/plugins/wp-paginate/
many thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[plugin : WP-Paginate] works on my index.php but not on category specific page’ is closed to new replies.