WordPress canonical tags
Check WordPress canonical output, override it carefully in Yoast, and diagnose mismatches with Google Search Console.
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.
Where does your site stand?
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
- Free audit in 60 seconds
- Fixes drafted for your review
- ChatGPT, Perplexity, Gemini and AI Overviews tracked
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
- Re-check after big site changes
- Keep this page for reference
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
- Follow the steps below
- Top-traffic pages first
- Check again in a month
3 parts, 3 minutes.
Check what the page already outputs
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
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
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
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.
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.
- 01
Open the content
Edit the post, page, category, or tag whose canonical you need to change.
- 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/. - 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.
- 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.
Keep all URL signals consistent
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.
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.
Every fact, linked and dated.
wordpress.org
yoast.com
google.com
- 01rel_canonical() | WordPress Developer Resourcesdeveloper.wordpress.org · checked 2026-10-24
- 02How to change the canonical URL in Yoast SEO for WordPressyoast.com · checked 2026-10-24
- 03How to specify a canonical with rel=canonical and other methods | Google Search Centraldevelopers.google.com · checked 2026-10-24
Keep learning
All platform guidesTools point. Agencies advise. This one ships.
Run the free audit, then approve the fixes. Every change can be undone.
- 46 fixes shipped without a ticket Brightpipe
- 0→7 ChatGPT citations in six weeks Paylane