Filter to enable/disable indexing and sitemaps?
-
Hi there!
We have a multisite (300 sites) and made the wrong setting before cloning the sites, so that we ended up with CPTs showing up with “index” and in the sitemap, that do not contain any content and on the other side another CPT is on “noindex” and therefore not showing in the sitemap.
I don’t want to set this up 300 times. Is there a way to set this via WP CLI or a code snippet? Or overwrite the option via code?
All my snippets (made via ChatGPT) do not work correctly or do not solve indexing *and* sitemap visibility. The LLM seem to not understand your docs or there is no way to achieve this and it is hallucinating …
Do you have an idea to solve this?
Any help is much appreciated!
All the best
Torsten
You must be logged in to reply to this topic.