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.

Several near-identical page cards with small differences in their address bars, arrows from each pointing to one highlighted card in the centre
Figure 1. Google groups duplicate URLs and picks one of them as the canonical, using the signals your site sends.

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.

Free tool · SEO ROI Calculator

Is the wrong URL ranking for a page that sells? Estimate what that keyword is worth before you prioritise the fix.

Enter search volume, CPC and your current ranking to estimate traffic, revenue and value for a keyword. Free.

Calculate your SEO ROI →

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.

Free tool · Ping My URL

Removed a duplicate canonical tag or fixed a redirect? Let search engines know the corrected URLs changed.

Notify Google and other search engines about up to 5 new or updated URLs at once. Free, no sign-up.

Ping your URLs →

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.”

Two panels of page cards with a magnifying glass between them, the left panel with a gold card marked with a check and the right panel with a different card marked in coral with a warning
Figure 2. Compare the canonical you declared with the one Google selected before you change any code.

Three points from that page and the troubleshooting guide shape how I read the result:

  1. If both values match, the canonical is working. Look elsewhere for your problem.
  2. 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.
  3. 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:

Four arrows of different colours, coming from a redirect sign, a code tag, a list sheet and a chain link, all pointing into the same single page card
Figure 3. Redirects, canonical tags, the sitemap and internal links should all point to the same preferred URL.
  1. 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.
  2. Redirect what should not exist. Protocol, www, trailing slash and attachment variants get a server-level redirect to the preferred URL.
  3. Use absolute URLs. Google’s guide says “Use absolute paths rather than relative paths with the rel=”canonical” link element.”
  4. Align the sitemap. List only the preferred, indexable URLs.
  5. 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.

Rank Check Reports

Fixed the canonical on key pages? Check which URL ranks for each keyword before and after the change.

A live Google check of your keywords on desktop and mobile · from $14.99 per check · no subscription · report within one working day

Order a rank check report →

FAQ

Does WordPress add canonical tags by default?

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.

Eugen Platon

Eugen Platon

Director of SEO & Web Analytics at onwardSEO
Eugen Platon is a highly experienced SEO expert with 16+ years of experience propelling organizations to the summit of digital popularity. Eugen, who holds a Master's Certification in SEO and is well-known as a digital marketing expert, has a track record of using analytical skills to maximize return on investment through smart SEO operations. His passion is not simply increasing visibility, but also creating meaningful interaction, leads, and conversions via organic search channels. Eugen's knowledge goes far beyond traditional limits, embracing a wide range of businesses where competition is severe and the stakes are great. He has shown remarkable talent in achieving top keyword ranks in the highly competitive industries of gambling, car insurance, and events, demonstrating his ability to traverse the complexities of SEO in markets where every click matters. In addition to his success in these areas, Eugen improved rankings and dominated organic search in competitive niches like "event hire" and "tool hire" industries in the UK market, confirming his status as an SEO expert. His strategic approach and innovative strategies have been successful in these many domains, demonstrating his versatility and adaptability. Eugen's path through the digital marketing landscape has been distinguished by an unwavering pursuit of excellence in some of the most competitive businesses, such as antivirus and internet protection, dating, travel, R&D credits, and stock images. His SEO expertise goes beyond merely obtaining top keyword rankings; it also includes building long-term growth and optimizing visibility in markets where being noticed is key. Eugen's extensive SEO knowledge and experience make him an ideal asset to any project, whether navigating the complexity of the event hiring sector, revolutionizing tool hire business methods, or managing campaigns in online gambling and car insurance. With Eugen in charge of your SEO strategy, expect to see dramatic growth and unprecedented digital success.
Eugen Platon
Check my Online CV page here: Eugen Platon SEO Expert - Online CV.