Free auditStart free
GuideWordPress · Canonical URLs

WordPress canonical tags

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 withChatGPTClaudePerplexityGoogleAI Mode
01How 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 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 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, 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 to compare your declared canonical with Google-selected canonical. Google can choose a different URL based on the page and other signals.

02How 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 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.

03Checklist

Keep all URL signals consistent

First2
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.
Next2
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.
Then1
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, WordPress XML sitemaps, and the canonical URL glossary.

Questions

Asked a lot.

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

01Does 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.

02How 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.

03Should 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. 01rel_canonical() | WordPress Developer Resourcesdeveloper.wordpress.org · checked 2026-10-24
  2. 02How to change the canonical URL in Yoast SEO for WordPressyoast.com · checked 2026-10-24
  3. 03How to specify a canonical with rel=canonical and other methods | Google Search Centraldevelopers.google.com · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane