Cookbook › Yoast SEO
Hide a page from search, or set its canonical
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.
What happens
Section titled “What happens”- Your assistant changes each post’s Yoast settings with
update-post-seo-data. - It reads them back. The post’s title and status stay as they are.
Try also
Section titled “Try also”- “Mark the questions page as an FAQ page in its schema.”
- “Put the canonical back to Yoast’s default.”
Good to know
Section titled “Good to know”- A noindexed post leaves your sitemap once Yoast refreshes it. That doesn’t remove it from Google’s existing results straight away.