在 google 结果中显示类别 wordpress,如何?

发布于 2024-11-05 20:19:33 字数 592 浏览 0 评论 0原文

你好吗?

这是我的网站:http://rehlat-world.com

当我在谷歌中搜索时:site:rehlat-world .com

结果只有“帖子、页面、标签”

我需要包含类别,但我不能

这是类别的示例: http://rehlat-world.com/country/indonesia

=========================

分类页面来源“ ”它还包含在 sitemaps.xml http://rehlat-world.com/sitemap.xml

请帮助我如何包含它。

注意我正在使用这个插件(All in One SEO Pack & Google XML Sitemaps、WP Super Cache)

how are you?

this is my website: http://rehlat-world.com

when I search in google : site:rehlat-world.com

The result only "POSTS , PAGES , TAGS"

I need to include categories but I can't

this is example for category : http://rehlat-world.com/country/indonesia

=======================

The source of category page " " also it is include in sitemaps.xml http://rehlat-world.com/sitemap.xml

Please Help me how can include it.

Note I'm using this plugins (All in One SEO Pack و Google XML Sitemaps , WP Super Cache)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骑趴 2024-11-12 20:19:33

我可以帮助您解决您的问题。这是一个很容易犯的错误,值得庆幸的是也很容易修复。

如果您查看类别页面的源代码(右键单击页面上的任意位置,选择指向源代码的链接)。

在第 9 行,您将看到

<meta name="robots" content="index, follow" />

这完全没问题,但是如果您向下滚动到第 74 - 80 行,您将看到 All in One Seo 插件也添加了其元标记,

<!-- All in One SEO Pack 1.6.13.2 by Michael Torbert of Semper Fi Web Design[418,446] -->  <meta name="robots" content="noindex,follow"/>  <link rel="canonical" href="http://rehlat-world.com/country/indonesia"/>  <!-- /all in one seo pack -->

因此您可以看到重复的“robots”元标记指定“noindex” ”。只需进入您的 All In One Seo 插件设置并禁用将机器人元标记添加到类别的选项即可。
显然第一个元标记就是您所需要的。

这样就可以完成工作,并且猫将立即被索引。

我还将添加一条建议,通过使其对访问者和搜索引擎更具吸引力,对您的网站将来有所帮助。我查看了您的站点地图,发现由于使用了阿拉伯文本,您的永久链接非常难看,而 WordPress 或浏览器又无法识别它,因为您仍然将 WordPress 设置为英语。你真的应该将你的 WordPress 语言配置更改为阿拉伯语。

源文件中的第一行显示

Strict//EN 告诉您的浏览器该网站设置为英语,这就是互联网浏览器应该如何阅读该网站。您应该能够通过在标签上方添加主题的 header.php 文件来解决此问题。我认为这应该可行,但我不是 100% 确定,可能是错误的。

您还可以编辑 wp-config.php 文件并找到 define ('WPLANG', '');,将其更改为 Define ('WPLANG', 'ar');。我对此缺乏经验,因此明智的做法是阅读 http://codex.wordpress.org/Translated_WordPress #WordPress_Localization_Repository
还可以使用像 http://wordpress.org/extend/plugins/ 这样的插件来节省你的时间gtranslate/

如果您已经很清楚这一点并且它不会对您的排名造成任何问题,请忽略我所说的。

好运

祝亚伦

I can help you with your issue. This is an easy error to make and thankfully just as easy to fix.

If you take a look at the source code of your category pages (right click anywhere on page, select link to source code).

On line 9 you will see

<meta name="robots" content="index, follow" />

This is perfectly fine but then if you scroll down to lines 74 - 80, you will see All in One Seo plugin has also added its metatags,

<!-- All in One SEO Pack 1.6.13.2 by Michael Torbert of Semper Fi Web Design[418,446] -->  <meta name="robots" content="noindex,follow"/>  <link rel="canonical" href="http://rehlat-world.com/country/indonesia"/>  <!-- /all in one seo pack -->

So you can see the repeated "robots" meta tag specifying "noindex". Simply go to into your All In One Seo plugin settings and disable the option to add robots meta tags to categories.
Obviously the first meta tag is all you need.

This will do the job and cats will be indexed in no time.

I will also add a suggestion that will help your site in the future by making it more appealing to your visitors and the search engines. I looked in your sitemap and noticed your permalinks are extremely ugly due to the Arabic text being used, which inturn cant be recognized by wordpress or the browsers because you still have wordpress set in English. You should really change your wordpress language config to Arabic.

The very first line in your source file says <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Strict//EN tells your browser the website is set in the English language and thats how the internet browsers should read the website. You should be able to fix this by adding in the header.php file of your theme, above the tag. I think this should work but im not 100% sure and may be wrong.

You also edit your wp-config.php file and find define ('WPLANG', '');, change that to define ('WPLANG', 'ar');. I have very little experiance with this so it would be wise to read http://codex.wordpress.org/Translating_WordPress#WordPress_Localization_Repository
could also save you time to do it with a plugin like http://wordpress.org/extend/plugins/gtranslate/

If you are already well aware of this and its not causing any issues with your rankings, disregard what I said.

Good luck

Aaron

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文