A client called me about a service page that had stopped ranking. The page looked fine. The problem was in Search Console, in one quiet line: "Duplicate, Google chose different canonical than user." Google had decided the real version of their page was a tag archive — a page that just lists post excerpts — and it was collecting the links and traffic that belonged to the service page.

The tag said one thing; Google did another. That is the whole story of canonicals on WordPress: the tag is the easy part — making every signal agree with it is the work.

A canonical is a hint, not an order

Google states it plainly: a canonical preference is "a hint, not a rule." Google weighs your tag against redirects, internal links, the sitemap, and page similarity — then picks the URL it thinks is best.

So when Google picks the wrong page, adding another canonical tag changes nothing. The job is finding which signal disagreed with yours. In my audits, it is almost always one of four things.

1. Two canonical tags, pointing in different directions

This is the most common one I find. WordPress core prints a canonical on singular posts and pages. Then the theme prints one. Then Rank Math or Yoast prints one. View source, search for canonical, and count: if there are two tags and they disagree, Google has been handed two different answers and will pick whichever it likes.

Find who is printing what:

grep -rn 'rel="canonical"\|get_canonical_url' wp-content/themes wp-content/plugins --include='*.php' | head -20 

Then pick one owner and silence the rest. And if you ever switch plugins, check again — the second tag usually appears the week after a migration, when the old plugin is gone but the theme's fallback is still live.

2. The staging URL leaked into production

The staging copy is the second most expensive version of this problem. A site gets built on staging.client.com, launched, and months later the canonical tags on the live site still point at staging — or the sitemap lists staging while the tags point at production. Google treats the staging copy as the real page, and the launch quietly underperforms for months. After every launch, view source on five live pages and check the canonical domain. Two minutes.

3. Parameter URLs that should never have been candidates

One blog post answers at half a dozen URLs: the clean permalink, the ?utm_source=newsletter version, the ?replytocom= version after a comment reply, the /page/2/ archive, and on WooCommerce stores the ?filter_pa_size= and ?orderby=price versions of every category. Six URLs, one page of content. Google groups them and picks one.

The fix depends on what the extra URL is — the decision most guides get wrong, reaching for the canonical tag in all three cases:

The extra URL… Fix Why
Should not exist (http vs https, www vs non-www, trailing-slash twin) 301 redirect Removes the duplicate
Must stay live (UTM link, filtered shop view, print view) Canonical tag Consolidates signals, URL keeps working
Has no business ranking (thin tag archive, empty filter result) noindex Keeps it out of search

The rule in one line: redirect when the duplicate is an accident, canonicalise when it is a necessity, noindex when the page should not rank. Never use robots.txt for this — it stops Google crawling the URL, so Google never sees the canonical on it.

4. Your own links vote against your tag

If your menu, breadcrumbs, and older posts all link to the ?utm_source= or non-www version while your tag names the clean URL, your site is arguing with itself. Update the links, not just the tag, and list the canonical URL in the sitemap only.

The diagnostic order

When Search Console says Google chose a different canonical, work in this order:

  1. Open URL Inspection on the URL Google picked and the URL you wanted. Read the two fields: user-declared canonical (what your site says) and Google-selected canonical (what Google chose). If they match, there is no problem.
  2. View source on both URLs and count the tags. Two tags, or one pointing at a redirect, a 404, or a noindexed page, is the answer in most cases.
  3. Check the signals that outvote a tag: where the old URL redirects, what your internal links point to, and what the sitemap lists.
  4. Fix the disagreement, not the tag. Then request re-indexing and wait — a canonical change takes days to weeks to show up after recrawl, and the live test does not show Google's choice, only the indexed data does.

The checklist

  • [ ] One canonical tag per page, from one owner — theme/plugin duplicates removed
  • [ ] Self-referencing canonical on every indexable page (absolute URL, right protocol/host)
  • [ ] Canonical target is indexable: returns 200, no redirect, no noindex
  • [ ] Staging domain nowhere in canonicals, sitemap, or internal links
  • [ ] Parameter/filter URLs handled by the right tool: redirect, canonical, or noindex
  • [ ] Internal links and sitemap point at the canonical form, not a variant
  • [ ] Declared and Google-selected canonicals match in URL Inspection

A canonical tag does not fix duplicate content. It is one vote in an election your whole site is holding — tag, redirects, links, and sitemap all naming the same URL. Win it, and Google stops picking the wrong page.

I'm Taha Khan, Founder & CEO at Web Vision Expert in Karachi, where I build WordPress and WooCommerce sites for small businesses. The duplicate-URL problem doesn't stop at canonicals — on a store it also burns your crawl budget, which I wrote about in the 500-product store Google was crawling as 50,000 URLs. Fix the crawl first, then make sure the right page gets the credit.

Which of these have you found on a client site? The double canonical from a theme and a plugin is my most frequent — I'd be curious what tops your list.