search - Noindex, nofollow stuck on homepage

Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to r

Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to restore it to the previous version.

Our homepage now contains the code "meta name='robots' content='noindex,nofollow' /" (< removed). From Googling, it appears that this code should be added when I visit the Privacy section of Wordpress and select "I would like to block search engines, but allow normal visitors".

However, my site is selected as "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers".

I also understand that by default, Wordpress chooses the first option, blocking search engines. I think that at some point during the restore to a previous version, Wordpress has got stuck in the blocking search engine mode. Changing privacy is having no affect on the code.

I need a manual way to remove "meta name='robots' content='noindex,nofollow' /" from the homepage - I have no idea where the code is located though.

Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to restore it to the previous version.

Our homepage now contains the code "meta name='robots' content='noindex,nofollow' /" (< removed). From Googling, it appears that this code should be added when I visit the Privacy section of Wordpress and select "I would like to block search engines, but allow normal visitors".

However, my site is selected as "I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers".

I also understand that by default, Wordpress chooses the first option, blocking search engines. I think that at some point during the restore to a previous version, Wordpress has got stuck in the blocking search engine mode. Changing privacy is having no affect on the code.

I need a manual way to remove "meta name='robots' content='noindex,nofollow' /" from the homepage - I have no idea where the code is located though.

Share Improve this question asked May 28, 2013 at 4:01 user33364user33364 211 silver badge2 bronze badges 1
  • Try header.php in your theme file. – Andrew Bartel Commented May 28, 2013 at 4:32
Add a comment  | 

1 Answer 1

Reset to default 4

The setting is stored in the options table under the key blog_public, the value is either 0 or 1. You can see the value of all options by manually visiting the page /wp-admin/options.php.

A quick way to get rid of it would be to remove the noindex action hooked to wp_head, which is what outputs that tag if blog_public is 0:

remove_action( 'wp_head', 'noindex', 1 );

This behavior is a bit strange though, I suspect perhaps something else may be involved here beyond simply the value of this option.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745655307a4638510.html

相关推荐

  • search - Noindex, nofollow stuck on homepage

    Recently my hosting automatically upgraded our Wordpress version. Due to custom plugin conflicts, we requested them to r

    5小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信