I’ve created many post with multiple pages with the nextpage-tag. The problem is that these show up as errors in “Google Webmaster Tools” because of duplicate title tags and meta descriptions.
The urls are like this:
http://mypage.com/mypost/
http://mypage.com/mypost/2
http://mypage.com/mypost/3
all of which have the same title and meta tags.
Is it somehow possible to include the page number to the meta tags?
I’m using the “WP SEO” which surprisingly doesn’t have this feature.
Is “WP SEO” = “WordPress SEO by Yoast”? If so, the plugin has some tags for you:
%%page%%
– Replaced with the current page number (i.e. page 2 of 4)%%pagetotal%%
– Replaced with the current page total%%pagenumber%%
– Replaced with the current page numberJust look at the bottom of the page
wp-admin/admin.php?page=wpseo_titles
, you’ll see. Just try it.You may just add these lines to your header.php under title tag:
Try using the
$page
global to filterwp_title
:Above answer is not working due to global variable issue, we have to use ‘$paged’ instead of ‘$page’.
Following is updated solution
I have tried your method. But it’s not get reflected in page title on blog pagination. Just hook the
wp_title
as mentioned the same infunctions.php
and ensure the same it’s not working can you update any other ways to achieve it.