# WordPress canonical tags

> Check WordPress canonical output, override it carefully in Yoast, and diagnose mismatches with Google Search Console.

Canonical: https://scaplet.com/seo/wordpress/canonical-tags

Guide WordPress · Canonical URLs

Check WordPress canonical output, override it carefully in Yoast, and diagnose mismatches with Google Search Console.

3 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

WordPress core outputs a canonical link for singular content, and SEO plugins can provide additional controls. First inspect the live `<link rel="canonical">` on a representative URL. In Yoast, edit the item and enter a full canonical URL under Advanced only for a duplicate or close equivalent; keep redirects, canonicals, internal links, and sitemap URLs aligned.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fcanonical-tags%20(%22WordPress%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fcanonical-tags%20(%22WordPress%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fcanonical-tags%20(%22WordPress%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fcanonical-tags%20(%22WordPress%20canonical%20tags%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [Check what the page already outputs 01](#check-what-the-page-already-outputs)
2. [Set a canonical with Yoast only for a real duplicate 02](#set-a-canonical-with-yoast-only-for-a-real-duplicate)
3. [Keep all URL signals consistent 03](#keep-all-url-signals-consistent)

_01_How it works

## Check what the page already outputs

Open the public URL, view source, and search for `rel="canonical"`. Compare the canonical href with the final URL after redirects. WordPress core’s `rel_canonical()` outputs a canonical link for singular queries based on `wp_get_canonical_url()`. A theme, SEO plugin, or custom code can change the result, so verify the [rendered HTML](/glossary/rendered-html) rather than assuming core is the only source.

1. 1

### Inspect a clean URL

Check one post and one page on the public hostname. Confirm there is one canonical link, it uses [HTTPS](/glossary/https) and the preferred host, and it points to the page’s final URL.
2. 2

### Inspect an alternate URL

Check a URL with [tracking parameters](/glossary/utm-parameters), a collection context, or another known duplicate path. Decide whether that version should consolidate to a single preferred page or stand on its own.
3. 3

### Check the Search Console choice

Use [URL Inspection](/glossary/url-inspection-tool) to compare your declared canonical with Google-selected canonical. Google can choose a different URL based on the page and other signals.

**A canonical is a strong signal, not a command**Google describes rel="canonical" as "a strong signal" that the specified URL should become canonical, not a directive. It ranks second only to redirects, and Google can still pick a different URL when other signals point elsewhere.

_02_How it works

## Set a canonical with Yoast only for a real duplicate

Use a canonical when both URLs should remain accessible but one is the preferred search version. Use a 301 redirect when you want to get rid of the old duplicate page and send people and crawlers to the new URL. Google says not to use robots.txt for canonicalization, and does not recommend noindex to prevent selection of a canonical page within a single site, because it blocks the page from Search.

1. 01

### Open the content

Edit the post, page, category, or tag whose canonical you need to change.
2. 02

### Set the full URL

In the [Yoast SEO](/seo/yoast/seo) sidebar, open Advanced and enter the canonical URL with the full scheme and host, such as `https://www.example.com/preferred-page/`.
3. 03

### Publish the change

Publish, save, or republish the content so the new canonical is live. Yoast says it does not output a canonical tag on a page marked noindex.
4. 04

### Verify the emitted link

View the public HTML and confirm the link target is exactly the preferred URL. Check for another SEO plugin or theme emitting a second canonical.

_03_Checklist

## Keep all URL signals consistent

First_2_
Link internally to the canonical URL so your own navigation does not keep advertising a duplicate.

Include the canonical URL, not alternate tracking or collection paths, in your sitemap. WordPress core sitemap output and your SEO plugin may have separate configuration, so inspect the live sitemap.

Next_2_
Keep the sitemap and the HTML canonical identical. Google says all pages listed in a sitemap are suggested as canonicals, though that is a weaker signal than rel="canonical".

For international pages, point the canonical to the same language version and use hreflang to connect alternatives.

Then_1_
Avoid canonicalizing a page with substantially different content to a stronger page just to transfer signals. The selected URL should represent the duplicate set.

If Google selects the wrong URL, compare page content, redirects, canonicals, sitemap entries, and internal links before changing the tag. A canonical fix may take time to be recrawled and reconsidered.

For related implementation, read [WordPress redirects](/seo/wordpress/redirects), [WordPress XML sitemaps](/seo/wordpress/xml-sitemap), and the [canonical URL glossary](/glossary/canonical-url).

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does WordPress add canonical tags automatically?

WordPress core’s `rel_canonical()` outputs a canonical link for singular queries. SEO plugins and themes can also influence output, so inspect the live HTML before adding another tag.

_02_ How do I change a WordPress canonical URL?

With Yoast, edit the content, open the Yoast SEO Advanced tab, enter the full canonical URL, and publish or save the change.

_03_ Should I use a canonical or redirect?

Use a canonical when both URLs should remain accessible and one is preferred for search. Use a permanent redirect when visitors should be sent from the old URL to the new one.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- wordpress.org
- yoast.com
- google.com

1. 01 [rel_canonical() | WordPress Developer Resources](https://developer.wordpress.org/reference/functions/rel_canonical/) developer.wordpress.org · checked 2026-10-24
2. 02 [How to change the canonical URL in Yoast SEO for WordPress](https://yoast.com/help/canonical-urls-in-yoast-seo/) yoast.com · checked 2026-10-24
3. 03 [How to specify a canonical with rel=canonical and other methods | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-10-24

## Keep learning

[All platform guides](/seo)

[Learn WordPress SEO CMS](/seo/wordpress) [Related Canonical URL Crawling and indexing](/glossary/canonical-url) [Read next AMP on WordPress CMS](/seo/wordpress/amp) [Do Run a free site audit Free, about two minutes](/site-audit)

More in WordPress SEO
[AMP on WordPress](/seo/wordpress/amp) [Google Analytics on WordPress](/seo/wordpress/google-analytics) [How to put WordPress in maintenance mode](/seo/wordpress/maintenance-mode) [WordPress 404 page](/seo/wordpress/404) [WordPress AI crawlers](/seo/wordpress/ai-crawlers) [WordPress breadcrumbs](/seo/wordpress/breadcrumbs) [WordPress canonical tags](/seo/wordpress/canonical-tags) [WordPress Core Web Vitals](/seo/wordpress/core-web-vitals) [WordPress favicon](/seo/wordpress/favicon) [WordPress Google Search Console setup](/seo/wordpress/search-console) [WordPress hreflang and multilingual SEO](/seo/wordpress/hreflang) [WordPress HTTPS](/seo/wordpress/ssl) [WordPress image SEO](/seo/wordpress/image-seo) [WordPress internal links](/seo/wordpress/internal-links) [WordPress lazy loading](/seo/wordpress/lazy-loading) [WordPress noindex](/seo/wordpress/noindex) [WordPress redirects](/seo/wordpress/redirects) [WordPress robots.txt](/seo/wordpress/robots-txt) [WordPress SEO plugins](/seo/wordpress/seo-plugin) [WordPress SEO titles and meta descriptions](/seo/wordpress/title-and-meta) [WordPress speed optimization](/seo/wordpress/page-speed) [WordPress structured data](/seo/wordpress/structured-data) [WordPress www redirect](/seo/wordpress/www-redirect) [WordPress XML sitemap](/seo/wordpress/xml-sitemap)

Terms on this page
[Rendered HTML](/glossary/rendered-html) [HTTPS](/glossary/https) [UTM parameters](/glossary/utm-parameters) [URL Inspection tool](/glossary/url-inspection-tool) [Canonical URL](/glossary/canonical-url)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
