Key takeaways
- A rel=canonical tag is a strong signal, not an order. Google picks the canonical URL from several signals, and it can pick a different one.
- WordPress core only prints a canonical tag on single posts, pages and other singular URLs. Archives depend on your theme or SEO plugin.
- Most WordPress canonical errors come from conflicting signals: the tag says one URL, while redirects, the sitemap and internal links say another.
- Check the user-declared and Google-selected canonical in the URL Inspection tool before changing anything.
- Paginated archives should each have their own canonical URL, not point to page one.
Most WordPress canonical errors are not caused by a missing tag. They are caused by a tag that disagrees with everything else on the site. The theme says one URL, the SEO plugin says another, the sitemap lists a third and the internal links point to a fourth. Sorting out those conflicts is a regular part of my WordPress SEO consulting work, and it usually starts with one question: which URL did Google choose, and why?
This article is about canonical tags and duplicate URLs. Sitemap problems, such as duplicated sitemaps and redirected or noindexed URLs inside them, are covered in my separate guide on fixing WordPress sitemap errors.
I first published this article in 2025 and have rewritten it, removing statistics I could not trace to any source.
What canonicalisation means in Google’s words
Google’s page on what canonicalization is defines it as “the process of selecting the representative –canonical– URL of a piece of content.” The canonical URL is the one “that Google chose as the most representative from a set of duplicate pages.” The key word is chose. You suggest; Google decides.
The same page lists the main factors: “whether the page is served over HTTP or HTTPS, redirects, presence of the URL in a sitemap, and rel=”canonical” link annotations.” It also says something that calms many site owners: “Some duplicate content on a site is normal and it’s not a violation of Google’s spam policies.” There is no duplicate content penalty to fear here. The real cost is that Google may show, and consolidate signals on, a URL you did not want.
Google’s guide on how to specify a canonical URL ranks the methods by strength:
| Method | How Google describes it | WordPress source |
|---|---|---|
| Redirect | A strong signal that the redirect target should become canonical | Server rules, redirect plugins, WordPress’s own URL guessing |
| rel=”canonical” | A strong signal that the specified URL should become canonical | WordPress core on singular pages, SEO plugin, theme |
| Sitemap | A weak signal that helps sitemap URLs become canonical | WordPress core sitemap or SEO plugin sitemap |
Where WordPress outputs the canonical tag
WordPress core has its own canonical function. The developer reference for rel_canonical() describes it as “Outputs rel=canonical for singular queries.” In plain terms, core prints a canonical tag on single posts, pages, attachments and custom post type entries, and on nothing else. Category, tag, author and date archives, the blog index and search pages get no canonical tag from core.
That gap is why SEO plugins add their own canonical output, usually replacing the core one. Trouble starts when more than one piece of code does it:
- the theme hard-codes a canonical tag in its header template, and the SEO plugin adds another;
- two SEO plugins are active after a switch, each printing its own tag;
- a page builder or translation plugin rewrites the canonical for its own pages;
- a custom post type plugin sets a canonical to an old URL structure.
Google’s guide is direct about this: “Don’t specify different URLs as canonical for the same page using different canonicalization techniques”. I view the page source and search for “canonical”. More than one tag, or a tag that does not match the address bar for a page you want indexed, is the first thing to fix.
On WordPress, the canonical tag is only as good as the agreement between the theme, the plugins and the redirects behind it.
Common WordPress canonical errors and their causes
These are the duplicate URL patterns I find most often on WordPress sites, with the signal I check for each.
Protocol, www and trailing slash variants
If http and https, or www and non-www, both return a page instead of redirecting, Google sees duplicates. The canonicalisation page lists protocol variants as a normal source of duplication, and the specification guide notes that “Google prefers HTTPS pages over equivalent HTTP pages as canonical”. The fix is a single server-level redirect to one version, with the WordPress Address and Site Address settings using the same version.
Paginated archives pointing to page one
Some themes and older plugin settings set the canonical of /page/2/ and beyond to the first page of the archive. Google’s guide to pagination and incremental page loading says the opposite: “Don’t use the first page of a paginated sequence as the canonical page”, and instead “give each page its own canonical URL”. Pointing every page to page one tells Google the posts listed deeper are not worth finding through that archive.
Attachment pages, parameters and staging copies
- Attachment pages: each uploaded image can have its own thin page. I redirect them to the parent post or the file, depending on the site.
- Parameters: tracking tags, sorting and filters create new URLs for the same content. Google lists “the results of sorting and filtering functions of a category page” as a common duplicate.
- Staging and demo copies: Google names “the demo version of the site is accidentally left accessible to crawlers” as an accidental variant. Staging sites should be password protected, not just set to discourage search engines.
Cross-domain canonicals you did not add
Google’s canonicalization troubleshooting guide lists causes that surprise people. It says “Some content management systems (CMS) or CMS plugins can make incorrect use of canonicalization techniques” to point to undesired URLs, that “Some hosting misconfigurations may cause unexpected cross-domain URL selection”, and that some attacks introduce code that adds redirects or cross-domain canonical tags. A canonical pointing to a domain you do not recognise is a security problem first and an SEO problem second.
How to check which canonical Google chose
Before changing code, I find out what Google actually did. The URL Inspection tool in Search Console shows two values. Google’s help page on the URL Inspection tool describes the user-declared canonical as “If your page explicitly declares a canonical URL, it will be shown here,” and the Google-selected canonical as “The page that Google selected as the canonical (authoritative) URL when it found similar pages on your site.”
Three points from that page and the troubleshooting guide shape how I read the result:
- If both values match, the canonical is working. Look elsewhere for your problem.
- If they differ, the troubleshooting guide asks you to “think about whether the Google-selected canonical makes more sense than your preferred canonical URL”. Sometimes Google is right and the tag is wrong.
- The live test does not settle it. The help page says “the live test cannot predict whether or not the tested version will be considered canonical.” The choice is made at indexing time.
For patterns across many URLs, the Page indexing report groups them under statuses such as “Duplicate, Google chose different canonical than user” and “Duplicate without user-selected canonical”. I open a few examples from each, inspect them, and look for the template they share.
Fixing WordPress canonical errors without making them worse
The fix is almost always to make every signal point to the same URL. I work in this order:
- One source of canonical tags. Remove hard-coded tags from the theme and keep one SEO plugin in charge. Check the page source again afterwards.
- Redirect what should not exist. Protocol, www, trailing slash and attachment variants get a server-level redirect to the preferred URL.
- Use absolute URLs. Google’s guide says “Use absolute paths rather than relative paths with the rel=”canonical” link element.”
- Align the sitemap. List only the preferred, indexable URLs.
- Align internal links. Menus, breadcrumbs and in-content links should use the preferred URL, not a redirecting or parameter version.
Three shortcuts I avoid, all from the same Google guide: “Don’t use the robots.txt file for canonicalization purposes”, “Don’t use the URL removal tool for canonicalization”, and “We don’t recommend using noindex to prevent selection of a canonical page within a single site”. A blocked URL cannot be crawled, so Google never sees the canonical tag on it.
After the fix, give Google time. The selected canonical changes when the URLs are recrawled and processed, which on a large site can take a while.
FAQ
Yes, but only on singular content. The core rel_canonical() function outputs a canonical tag for single posts, pages and similar entries. Archives and the blog index rely on your theme or SEO plugin.
Why does Google ignore my rel=canonical tag?
Google treats rel=canonical as a strong signal, not a directive, and weighs it against redirects, sitemaps, HTTPS and other signals. If those signals disagree, or the pages are not really duplicates, Google may choose a different URL. The URL Inspection tool shows which one it chose.
Can duplicate content get my WordPress site penalised?
Google says some duplicate content on a site is normal and not a violation of its spam policies. The practical risk is that Google shows and consolidates signals on a URL you did not choose.
Should paginated category pages point their canonical to page one?
No. Google’s pagination guidance says not to use the first page as the canonical and to give each page its own canonical URL.




