• Resolved boybawang

    (@boybawang)


    Hello –

    A while back I created this support topic regarding programmatically removing the ‘noindex’ attribute for certain categories.

    I’m a bit confused about how to implement that. When exactly does that filter get applied? Upon post creation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter boybawang

    (@boybawang)

    EDIT from above:

    Rather than unsetting the noindex directive for certain categories, how can I unset the directive for a specific page? For example, the default directive for a post type is noindex, but there are certain pages for that post type I’d like to have indexed.

    • This reply was modified 3 years, 1 month ago by boybawang.
    • This reply was modified 3 years, 1 month ago by boybawang.
    Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    That filter gets applied whenever the robots-metadata is requested: During post/term creating, post/term display, sitemap creation, SEOBar, etc. The data of the filter is not stored anywhere on the server. The filter works retroactively for all pages of your website and can be fine-tuned by reading the second and third parameters.

    You cannot override that filter in its current state. In fact, I recommend not using the filter at all — instead, rely solely on the interface.

    Via the interface at “SEO Settings -> Robots Meta Settings -> Indexing”, you can deindex post types, categories, tags, etc. globally. Then, when you edit a specific post or term, you can select “index” to override the global setting.

    Thread Starter boybawang

    (@boybawang)

    Hi @cybr – Thanks for the info. I realize I can override manually via the interface, but was hoping to do this programmatically. That’s OK, as this really isn’t that big of a deal.

    I’ll go ahead and close this out. Thanks for an awesome plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When does “the_seo_framework_robots_meta_array” run?’ is closed to new replies.