Blog name twice in next_posts_link
-
Trying to fix the previous and next_posts_link in my custom theme (with messy P2 ajax stuff). I get links like this:
http://mysite.com/yetanothertestblog/yetanothertestblog/page/2/
It should be:
http://mysite.com/yetanothertestblog/page/2/
The link is created in function get_pagenum_link. I actually get the correct links when I mess up the first of these lines, by removing parts of the page/d+ stuff:
$request = preg_replace( '|page/d+/?$|', '', $request);
$request = preg_replace( '|^index.php|', '', $request);
$request = ltrim($request, '/');But then I can’t get rid of the error messages. It’s not clear to me what that section does exactly.
Is there a subtle way to edit that line to remove one of the two blognames?
Other possible solutions?
- The topic ‘Blog name twice in next_posts_link’ is closed to new replies.