I have been trying to fix this problem, and figured if I went in and changed the function to reflect the proper URL it would work, but I'm lost when I look at the template-functions-links.php file and find:
function posts_nav_link($sep=' — ', $prelabel='« Previous Page', $nxtlabel='Next Page »') {
global $request, $posts_per_page, $wpdb, $max_num_pages;
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) {
previous_posts_link($prelabel);
echo preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $sep);
next_posts_link($nxtlabel, $max_page);
}
}
}
I cant figure out where it makes the link in there... no abspath or anything, so I'm lost.
Can anyone help?