I bought a few themes that by default don't have blog posts on home page as normal WordPress themes such as Twenty Eleven has. I had to create a page of Blog template and then use it for home page in Settings -> Reading.

It works, except for the pagination pages aren't redirecting properly AND page number isn't shown in the page title.

For example, both of these pages are accessible with or without trailing slash:

And they NEVER redirect to the canonical one as normal WordPress blog pagination pages should. And the page number isn't being displayed in <title></title>, it's just "Page | Shanghai Web Hosting". Seems $paged or $page variable isn't assigned a value or something.

It's all the same problems with another site that I used a Blog template page for the home page:

Are both accessible and NEVER redirects. The page number is neither shown in the title tag.

Any idea why this is happening and how I can fix this? Would it be a theme issue or is it a WordPress bug?



1 Answer 1


try add trailingslash for paged

add_filter('user_trailingslashit', 'wpse_paged_trailingslash',10,2);
function wpse_paged_trailingslash($url,$type){
    if ($type === 'paged')
        if (substr(get_option('permalink_structure'), -1) !='/')
        return trailingslashit($url);
    } else {
        return $url;
  • Hi, thanks for the tip. But what does this do? Is it a WordPress bug?
    – datasn.io
    Jun 17, 2012 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.