Support » Plugin: Yoast SEO » Plugin adds NOINDEX to pages that i want to index

Viewing 13 replies - 1 through 13 (of 13 total)
  • Untick that option. If you have ticked noindex subpages of archives. it will noindex

    thats the thing, the option isnt ticked. check the screenshot:

    is this only with subpages or the whole site . If the whole site make sure on wp-admin/options-reading.php Discourage search engines from indexing this site is unticked

    one more thing are you using
    plugin. If using check its settings

    My current settings from the Reading settings in wordpress:

    and no its not the whole site, im having only problem with the sub pages like page 1 page 2 page 3 etc.

    single posts etc has the index on it

    Nope not using any kind of seo plugin except the current one

    ok Try deactivating and reactivate the plugin see if this helps, Not Sure if this helps but no harm in trying

    yeah i tried that earlier this morning without any results. any ideas on what could cause this?

    ok i tried on localhost what it did if you tick that option it will add the noindex tag and after if you untick it it won’t remove the tag that was added before, so now i am not sure how to delete that

    let me search and see what can i find and let you know

    update. i tried to reinstall the plugin without any results!

    It’s not your fault, it’s this rather poorly written plugin.

    Your issue can be solved like this (assumes you can edit PHP, and you have the latest version of the plugin):

    1. Open wp-content/plugins/wordpress-seo/frontent/class-frontend.php

    2. Go to line 582, it should look like this:

    ( is_home() && get_query_var( 'paged' ) > 1 )

    3. Select the entire line 582, and replace it with

    ( is_home() && get_query_var( 'paged' ) > 1 && ( isset( $this->options['noindex-subpages'] ) && $this->options['noindex-subpages'] ))

    EXACTLY as it I put it here.

    This will fix your problem. I basically added the check for the noindex-subpages option (the “No index subpages of archives” tick box in your screenshot). Without this check, the plugin treats your “home” archive outside the normal rule for archives controlled by that tickbox.

    IMO this is a very, very serious bug, as it literally hides your main post archive from search engines, behind your back, and this is done by a SEO optimization plugin…

    Good luck, let us know.

    I have a same kind of problem but with my blog section has sub pages like now these pages produce duplicate content because they have part of the post that i am posting i want the sub pages to be noindex to them can any body help me with that i am using the yoast seo and in it the archive is no index but still the blog pase2 or 3 or 4 and showing when i check

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Plugin adds NOINDEX to pages that i want to index’ is closed to new replies.