Wordpress WordTube Pagenavi help?

by m00d
1 replies
I'm trying to set up my first tube site and I really like the WordTube theme but I've got one issue I can't seem to fix. By default the theme doesn't use pagenavi on the main page(index.php), it uses pagenavi when viewing the archives and it works correctly there. I added the pagenavi code to index.php and it displays correctly but doesn't function. It seems to know how many pages there should be as it updates the available pages when I add more content, but clicking on the page numbers shows the same content. I'm lost and hope someone can help me resolve this... Thanks in advance. Below is the code for index.php.

<?php get_header(); ?>

<div id="content">

<div class="postsbody">
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
<div class="ads1">
<?php include (TEMPLATEPATH . '/adsense/adsense468-15.php'); ?>

<div class="featured">
<h2>Latest Videos</h2>
<div style="padding:15px 0 15px 20px;">
<?php $recent = new WP_Query("cat=-<? echo $wt_featured; ?>&showposts=12"); while($recent->have_posts()) : $recent->the_post();?>
<div class="videopart">

<div class="thumbnail">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" width="120" height="90" alt="<?php the_title(); ?>" /></a>

<div class="fpost">
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<h4><p><?php echo time_ago(); ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;
<?php if(function_exists('the_views')) { the_views(); } ?></p></h4>
<p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>

<?php endwhile; ?>

<div class="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>

<div class="ads2">
<?php include (TEMPLATEPATH . '/adsense/adsense468-60.php'); ?>



<?php get_footer(); ?>
#pagenavi #wordpress #wordtube

Trending Topics