👋🏼Welcome to my WP-Host blog where I am excited to share my knowledge and expertise on WordPress hosting and website construction tutorials with you. Let’s connect and learn from each other! You can reach me at info@yrshare.com.

(如果你会中文,可以点击微信图标与我联系。)

扫一扫加我

注:因个人英文水平有限,所以暂时只能为懂中文的朋友提供wordpress建站服务

微信:18200592859 或 yrwordpress

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

Solve the problem that Google Bing does not include it caused by Noindex. If you checked [Suggest that search engines do not index this site] when installing wordpress, then your website may not be included for a long time, whether it is Google or Bing. What should I do in this situation? Next, I will share with you how to deal with it based on my own experience.

【WP-Host/悦然wordpress建站】
Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

Continue to share the wordpress tutorial, let’s talk about the noindex command today. Some friends may set it to prohibit crawling when using wordpress to build a website. If it is directly set in the robots.txt file to prohibit crawling, then it is nothing, and it can be modified later. But if you checked [Suggest that search engines do not index this site] when WordPress was created, then there may be some problems, because this option will add a noindex tag to your website, which will have a great impact on Google and Bing , because these two search engines will strictly implement this instruction, and the priority is higher than the robots.txt file. If it is not handled properly, it will seriously affect the SEO optimization effect of Google.

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

As shown in the picture above, if you have checked [Suggest that search engines do not index this site] on your wordpress site before, even if you cancel it later, the noindex tag will still exist on your website, which is very stubborn! This has a great impact on users who build wordpress foreign trade websites. If you don’t handle it well, it will directly affect the effect of your foreign trade website building, because Bing and Google will basically not include your website!

So what to do? Next [WP-Host/Yueran wordpress website building] will share with you the processing method.

//removemeta robots
add_filter('wp_robots', 'fanly_basic_robots_remove_noindex', 999);
function fanly_basic_robots_remove_noindex( $robots ){
	return get_option('blog_public') ? [] : $robots;
}

Add the above code to the functions.php file of the current wordpress website building theme, save it and clear the cache to take effect. It can also be added directly to the Code Snippets plugin.

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

Under normal circumstances, as long as the crawling of the website is not restricted, the speed of Google search to collect the website is relatively fast. It is basically no problem to receive it in about a week, and it may be able to include the homepage in a day or two. As you can see in the image above, one of my sites was indexed by Google the day after I removed the noindex tag.

Note: This is just my personal experience. Although I have verified that it is effective, it may not be completely applicable to your situation, because there are too many situations that affect website inclusion.

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

继续分享wordpress建站教程,今天来聊聊noindex指令。有些朋友在使用wordpress建站时可能会在先设置为禁止抓取,如果是直接在robots.txt文件中设置禁止抓取,那没什么,后期修改过来就可以了。但是如果你在wordpress建立时勾选了【建议搜索引擎不索引本站点】,那么就可能存在一些问题了,因为这个选项会在你的网站添加noindex标记,对谷歌和必应的影响很大,因为这两个搜索引擎会严格执行这个指令,优先级还高于robots.txt文件,处理不好会严重影响谷歌SEO优化效果。

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

如上图所示,如果你的wordpress站点之前勾选过【建议搜索引擎不索引本站点】,即使后面你取消了,noindex标记依然会存在于你的网站中,非常顽固!这对做wordpress外贸建站的用户来说影响非常大,如果不处理好,这将直接影响到你的外贸建站效果,因为必应和谷歌基本不会收录你的网站!那么怎么办呢?接下来【WP-Host/悦然wordpress建站】就给大家分享处理方法。

//移除 meta robots
add_filter('wp_robots', 'fanly_basic_robots_remove_noindex', 999);
function fanly_basic_robots_remove_noindex( $robots ){
	return get_option('blog_public') ? [] : $robots;
}

把上面的代码添加到当前wordpress建站主题的functions.php文件中,保存再清空缓存即可生效。也可以直接添加到Code Snippets插件中。

Solve the problem that Google Bing does not include it caused by Noindex (wordpress website)-WP-Host

一般情况下只要不限制网站抓取,谷歌搜索对网站收录的速度是比较快的,一周左右收到基本没问题,快的可能一两天就能收录首页了。如上图所示,我的一个网站在移除noindex标记后的第二天谷歌就收录了。

注意:这只是我的个人经验,虽然我自己验证过有效,但可能并不会完全适用于你的情况,因为影响网站收录的情况太多了。

WordPress Hosting / 悦然wordpress建站

WordPress Hosting / 悦然wordpress建站

【WordPress Hosting / 悦然wordpress建站】I am a WordPress hobby from China, and I like to communicate with friends from all over the world to learn WordPress website building and maintenance related knowledge.