Canonical Tags and Duplicate Content on WordPress: A Practical Guide for Bloggers

Most WordPress blogs publish each post once but expose it at several URLs: with and without a tracking parameter, inside a category archive, on page two of a feed, or as a copy on Medium. Search engines then have to pick one version to rank, and they do not always pick the one you wanted. A canonical tag in WordPress is how you tell them which one is the original.
This guide explains what the tag does, where duplicate content actually comes from on a WordPress site, how to set canonicals with Yoast SEO and Rank Math, how to check what Google chose, and how to syndicate to Medium or LinkedIn without losing credit for your own article.
Quick Answer: A canonical tag is a
<link rel="canonical">element in a page's<head>that names the preferred URL for that content. Google treats it as a strong hint, not a command. Every indexable page should carry one pointing at itself, and duplicate or syndicated copies should point at the original.
What a Canonical Tag Does
The tag looks like this: <link rel="canonical" href="https://yourdomain.com/your-post/" />. It sits in the <head> of the page and tells crawlers which URL should represent a group of near-identical pages. Google's documentation on consolidating duplicate URLs describes it as one of several signals, alongside 301 redirects and sitemap inclusion, that Google weighs when it chooses a canonical.
Two points are worth remembering:
- It is a hint. If your canonical conflicts with your sitemap, your internal links or a redirect, Google may ignore it and choose another URL.
- The duplicate stays reachable. Visitors can still open the non-canonical URL. The tag only says where ranking signals such as links should be consolidated. If a URL should not exist at all, use a 301 redirect instead (see our guide to WordPress permalinks and 301 redirects).
How Duplicate Content Actually Happens on WordPress
Duplicate content is rarely a penalty. It is a sorting problem: several URLs compete, ranking signals get split, and the wrong one may show up in results. These are the usual sources on a WordPress blog:
| Source | Example | Best fix |
|---|---|---|
| URL parameters | /post/?utm_source=newsletter | Self-referencing canonical on the clean URL (the parameter version inherits it) |
| Protocol and host variants | http:// vs https://, www vs non-www | 301 redirect to one version, plus matching canonicals |
| Trailing slash or uppercase variants | /post vs /post/ | Pick one pattern; WordPress usually redirects the other |
| Category and tag archives | /category/seo/, /tag/canonical/ | Self-canonical if indexed; noindex thin archives |
| Pagination | /category/seo/page/2/ | Each page canonicalises to itself |
| Syndicated copies | Your post republished on Medium | Canonical on the copy pointing to your original |
Tag and category archives
Archives list excerpts or full posts that already live at their own URLs. A well-organised category page is useful and can rank in its own right. A tag page with two posts and no introduction usually is not. Do not point a tag archive's canonical at a single post to "fix" it, because the archive is a different page. Either keep it indexable with its own self-referencing canonical, or set it to noindex in your SEO plugin. How you structure them in the first place is covered in WordPress categories vs tags.
Pagination
Page 2 of an archive shows different posts from page 1, so it is not a duplicate. Google's guidance is that each paginated URL should have its own self-referencing canonical, and you should not canonicalise every page to page 1. Doing so tells Google to ignore the posts listed on later pages.
URL parameters
Newsletter links, social shares and ad clicks add parameters such as ?utm_source= or ?fbclid=. The page content is identical, so a self-referencing canonical pointing to the clean URL consolidates them. Google retired the old URL Parameters tool in Search Console in 2022, so the canonical tag and consistent internal linking are your main controls now.
What WordPress Does by Default
WordPress core outputs a canonical link for single posts and pages, and it already redirects some URL variants on its own, such as a missing trailing slash. It does not add canonical tags to category, tag, author or date archives. Your theme or an SEO plugin usually fills that gap, which is why checking your page source matters: the behaviour depends on what is installed.
An SEO plugin also gives you a per-page override. You will need one when the preferred URL is on a different page or domain.
How to Set a Canonical URL in Yoast SEO and Rank Math
Yoast SEO
- Open the post or page in the editor.
- In the Yoast SEO panel, open Advanced.
- Enter the full preferred URL in the Canonical URL field and update the post.
Rank Math
- Open the post or page and open the Rank Math panel.
- Go to the Advanced tab.
- Enter the full preferred URL in Canonical URL and update.
For both plugins, leave the field blank when you want the default self-referencing canonical. A wrong value is worse than an empty one, because it points the page's signals at the wrong place. This override changes the canonical of the page you are editing. It does not set the canonical of a copy on another website; more on that below.
Avoid hand-coding canonical tags into header.php when a plugin is active. The theme tag and the plugin tag will both print, and conflicting canonicals can be ignored.
How to Check Your Canonicals
- View source. Open the page, choose View Page Source, and search for
rel="canonical". Confirm there is exactly one and that it points where you expect. - URL Inspection in Google Search Console. Paste the URL and compare User-declared canonical with Google-selected canonical. If they differ, Google disagrees with your tag.
- Pages report. Under Indexing, look at statuses such as "Duplicate, Google chose different canonical than user" and "Alternate page with proper canonical tag". The first one is the one to investigate.
- Cross-check your signals. Make sure your XML sitemap lists only canonical URLs and that internal links use the same version. Our guide to robots.txt and XML sitemaps covers the sitemap side.
If a page is not being indexed at all, a canonical mismatch is only one possible cause. See Crawled - Currently Not Indexed for the wider checklist.
Syndicating to Medium and LinkedIn Safely
Republishing your articles on other platforms can widen your reach. The risk is that the copy outranks your original. The fix is a cross-domain canonical: the copy's canonical tag points at your WordPress URL. Remember that the tag has to be set on the copy, on the other platform, not in your own Yoast or Rank Math field.
- Medium: use the Import a story tool and paste your post URL. Medium records the original URL as the canonical link for the imported story. Check the imported page's source to confirm it.
- LinkedIn: LinkedIn Articles do not give you a canonical field that we are aware of, so you cannot control this. Safer options are to publish a shortened version or a standard post that links to the full article on your blog, and to wait before posting a full copy.
- Any partner site: ask them to add a canonical to your original, or to use
noindexon the copy, and to link back to you.
Even with a canonical in place, Google may still choose the other version, because it is a hint. Publish on your own site first, let it be crawled, and keep the copy shorter or clearly different where you can. Our blog content audit process is also a good place to spot overlapping posts on your own site before they compete.
Common Canonical Mistakes
- Canonicalising everything to the homepage. This tells Google your posts are not worth indexing.
- Canonicalising page 2+ of archives to page 1. The posts on later pages lose their discovery path.
- Two canonical tags on one page. This usually comes from a theme plus a plugin, and Google may disregard both.
- Canonical to a redirected or noindexed URL. Point at a live, indexable page that returns 200.
- Using canonicals to merge different posts. If two posts target the same keyword, merge or redirect them instead. See how to find and fix keyword cannibalization.
- Copying a post and forgetting the canonical field. The new draft can inherit a pointer to the old one.
Frequently Asked Questions
Does WordPress add canonical tags automatically?
Core WordPress adds one to single posts and pages. Archive canonicals normally come from your theme or an SEO plugin, so check the source of a category page to be sure.
Is duplicate content a Google penalty?
No. It is usually a filtering and consolidation issue. The practical cost is split signals and the wrong URL ranking.
Should every page have a self-referencing canonical?
Yes, for indexable pages. It confirms your preferred URL and covers parameter variants.
Canonical tag or 301 redirect?
Use a 301 when the old URL should no longer be used. Use a canonical when both URLs must stay reachable, such as tracking links or a syndicated copy.
Can I canonicalise to another domain?
Yes. It is how syndication works, but the tag must be set on the copy, and Google still treats it as a hint.
How long until Google respects a changed canonical?
It depends on how often the page is crawled. Request a re-crawl with URL Inspection, then recheck after a few days to a few weeks.
Conclusion
Canonical tags are a small piece of markup that settle a big question: which URL is the real one. Get the basics right on your own site first, then extend the same idea to anything you republish.
Key takeaways:
- Core WordPress handles single posts; archives depend on your theme or SEO plugin.
- Give every indexable page a self-referencing canonical and let URL parameters inherit it.
- Paginated pages canonicalise to themselves, not to page 1.
- For syndication, the canonical is set on the copy, not in your own plugin field.
- Verify with View Source and URL Inspection, and keep sitemap and internal links consistent.
Pick your five most important posts, run each through URL Inspection and compare the declared and Google-selected canonicals. For help planning and publishing SEO content on a steady schedule, explore the blog tools at a-stats.app.