WP-Paginate – span 'current' fixed on first li item regardless of page I'm on.
-
I have installed WP-Paginate and it’s working except the first li item always has span=”current” applied regardless of the page I’m viewing. So for example I have 3 pages, i click to go to page 3, I am taken to page 3 however the pagination does not update to refelt this (the first li item is still not linked and has span=”current” around it. I have had exactly the same happen when i tried WP-Pagenavi so I must be doing someting slightly wrong. My loop below:
<?php query_posts(‘category_name=events&orderby=rand&posts_per_page=10’);?>
<?php if(function_exists(‘wp_paginate’)) {
wp_paginate();
} ?><?php while (have_posts()) : the_post(); ?>
<h4>” href=”<?php the_permalink() ?>”><?php the_title(); ?></h4>
<?php the_excerpt(); ?>
<?php endwhile; ?>Any ideas anyone?
- The topic ‘WP-Paginate – span 'current' fixed on first li item regardless of page I'm on.’ is closed to new replies.