最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

search - Noindex, nofollow stuck on homepage

programmeradmin14浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论