• Resolved Torsten Landsiedel

    (@zodiac1978)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @zodiac1978,

    Thanks for reaching out. You can use the filter documented here to set noindexprogrammatically.

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Hi @maybellyne

    unfortunately the snippets do not work for me. I need to enable and disable some CPTs and enabling/adding the CPT to the sitemap (and therefore enabling/modifying the “index” attribute?) does not work.

    Any more details on how to achieve what I need?

    All the best
    Torsten

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.