Static page as homepage, defined in home.php
Blog at http://www.phulicohanmd.com/drphulisblog/, defined in drphulisblog.php
I recently changed the location of the blog from /drphulisnotebook/ to /drphulisblog/
and since then, the posts_nav_link does not function properly. Here’s what happens:
On the first page of posts, the Next link it creates points to drphulisblog/page/2/, which brings up the first page of posts again. However, if I modify the address in the address bar of the first page to be /drphulisblog/index.php?paged=1, then the Next link it creates points to drphulisblog/index.php?paged=2 and it brings up the next page of posts no problem.
Then, if I’m on drphulisblog/index.php?paged=2, it generates the link to the third page properly (drphulisblog/index.php?paged=3), but the link back to the first page of posts is only drphulisblog/index.php, and so once the first page loads again, the Next link at the bottom is once again drphulisblog/page/2/ which has the same problem of reloading the first page over and over again.
Here is the drphulisblog.php code:
Template Name: Dr. Phuli’s Blog
// Which page of the blog are we on?
$paged = get_query_var(‘paged’);
//load index to show blog
load_template(TEMPLATEPATH . ‘/index.php’);
And here is the code that generates the Next/Previous links inside the index.php file:
<p style=”margin-top:30px;”><?php posts_nav_link(‘ | ‘, __(‘« Previous Posts’), __(‘More Posts »’)); ?></p>
I’ve tried going into /wp-includes/link-template.php to see if I could figure things out, but I’m not a PHP programmer and came up empty.
So, can anyone tell me how to prevent WordPress from generating links in the /page/#/ format?