Here is my navigation code from within the index.php. Does anything look wrong to you?
<!– Page Navigation –>
<?php
global $wpdb, $posts_per_page, $fromwhere, $matches, $max_num_pages,
$request, $posts_per_page;
if (! is_single()) {
if (get_query_var(‘what_to_show’) == ‘posts’) {
if ( ! isset($max_num_pages) ) {
preg_match(‘#FROM (.*) GROUP BY#’, $request, $matches);
$fromwhere = $matches[1];
$numposts = $wpdb->get_var(“SELECT COUNT(ID) FROM $fromwhere”);
$max_num_pages = ceil($numposts / $posts_per_page);
}
} else {
$max_num_pages = 999999;
}
if ($max_num_pages > 1) {
?>
<div class=”center-widget”>
<div class=”bottom-page-nav”>
<?php posts_nav_link(”, ”,_t(‘« Previous Entries’)); ?>
|
<?php posts_nav_link(”, _t(‘Next Entries »’), ”); ?>
</div>
</div> <!– center-widget –>
<?php
}
}
?>