Duplicate Titles on Wordpress blog pages
-
Hi, I have an issue where I am getting for duplicate page titles for pages that shouldn't exist.
The issue is on the blog index page's (from 0 - 16) and involves the same set of attachment_id for each page, i.e.
/blog/page/10/?attachment_id=minack
/blog/page/10/?attachment_id=ponyrides
/blog/page/11/?attachment_id=minack
/blog/page/11/?attachment_id=ponyrides
There are 6 attachment_id values (and they are not ID values either) which repeat for every page on the index now what I can't work out is where those 6 links are coming from as on the actual blog index page http://www.bosinver.co.uk/blog/page/10/ there are no links to it and the links just go to blog index page and it ignores the attachment_id value. There is no sitemap.xml file either which I thought might have contained the links.
Thanks
-
Install the Yoast SEO Plugin.
Go to Permalink Settings under SEO.And Set:
Redirect attachment URL's to parent post URL. Attachments to posts are stored in the database as posts, this means they're accessible under their own URL's if you do not redirect them, enabling this will redirect them to the post they were attached to.
I hope this helps.
-
Thanks for that info, I will try it and see if it works.
-
Wow that actually works, I didn't hold out much hope for the Yoast plug-in sorting that problem but it did. Thank you very much
-
Great. Glad to help anytime :). Thanks for coming back to confirm it worked. That will help others with similar problem to use the solution without second thoughts.