Skip to content

Cookbook › Yoast SEO

Hide a page from search, or set its canonical

Yoast SEO1 minuteChangesTested 15 Oct 2026
Paste into ChatGPT or ClaudeHide the thank-you page from search engines, and set the canonical URL of the spring post to https://example.com/spring/.

Changes your site. Standard asks you first in wp-admin; Trusted does it directly.

  1. Your assistant changes each post’s Yoast settings with update-post-seo-data.
  2. It reads them back. The post’s title and status stay as they are.
  • “Mark the questions page as an FAQ page in its schema.”
  • “Put the canonical back to Yoast’s default.”
  • A noindexed post leaves your sitemap once Yoast refreshes it. That doesn’t remove it from Google’s existing results straight away.