Google does not index data from custom table used for a plugin

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list of product and for product detail I created WordPress pages and used shortcode to display list of products and data for a particular product. I use rewrite rules to have SEO friendly URL e.g. /nas-obchodik/chalk-paint-graphite/ will make call to /detail-produktu/?NAME=chalk-paint-graphite. nas-obchodik and detail-produktu are both standard WordPress pages with shortcode. The problem is that Google has never indexed this product detail, even when I try fetch as google and add the result into the index. I found only one article that google index only content return by get_post() method. Is there any solution to add custom table data into google index?

I overrode the default rel_canonical() function and made canonical tag for each product page specific as Milo advised, e.g. <link rel='canonical' href='/' /> Then I tried fetch as google and add the page to the index but still can't see it in google search results.

Update 11.6.2015 I tried to use sitemap (XML Sitemap Generator), add few of this pages as an external content. However, google indexed all the pages except of these in the external content list. You can see the list of pages here: .html Any help appreciated.

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list of product and for product detail I created WordPress pages and used shortcode to display list of products and data for a particular product. I use rewrite rules to have SEO friendly URL e.g. /nas-obchodik/chalk-paint-graphite/ will make call to /detail-produktu/?NAME=chalk-paint-graphite. nas-obchodik and detail-produktu are both standard WordPress pages with shortcode. The problem is that Google has never indexed this product detail, even when I try fetch as google and add the result into the index. I found only one article that google index only content return by get_post() method. Is there any solution to add custom table data into google index?

I overrode the default rel_canonical() function and made canonical tag for each product page specific as Milo advised, e.g. <link rel='canonical' href='http://www.navidieku.sk/nas-obchodik/annie-sloan-sablona-antheia/' /> Then I tried fetch as google and add the page to the index but still can't see it in google search results.

Update 11.6.2015 I tried to use sitemap (XML Sitemap Generator), add few of this pages as an external content. However, google indexed all the pages except of these in the external content list. You can see the list of pages here: http://www.navidieku.sk/sitemap-externals.html Any help appreciated.

Share Improve this question edited Jun 11, 2015 at 12:38 wiliak asked May 19, 2015 at 15:40 wiliakwiliak 71 bronze badge 5
  • do all of your product pages have a canonical meta tag with the same value? – Milo Commented May 19, 2015 at 17:36
  • yes, there is canonical meta tag <link rel='canonical' href='navidieku.sk/detail-produktu' /> <link rel='shortlink' href='navidieku.sk/?p=4953' /> however, I'm not really familiar with this and this was added there by wordpress itself, I suppose. – wiliak Commented May 20, 2015 at 6:47
  • the canonical tag tells search engines which page to index for content that can appear under multiple URLs. if it is identical for all products, that's likely why none of those pages are indexed individually. see this question, which you could use as a starting point to generate your own custom canonical links for those pages. – Milo Commented May 20, 2015 at 16:34
  • Have you tried using custom post types and post meta rather than custom tables? – Tom J Nowell Commented May 26, 2015 at 17:51
  • I decided to use custom tables for this type of plugin as it is an online shop. I found it easier to create list of product, product variations in separate tables than trying to use custom posttype. I'm using custom postype in another plugin for displaying "easy" product portfolio and for sure, it is indexed by google OK. – wiliak Commented May 26, 2015 at 18:01
Add a comment  | 

1 Answer 1

Reset to default 0

The problem was caused by canonical meta tag (thanks @Milo), as it had the same value for all of these pages. You have to avoid using the same value for canonical meta tag for pages with dynamic content. I changed it to be unique for every page. However it took google more than one month to get these pages indexed. Check this article as well.

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

相关推荐

  • Google does not index data from custom table used for a plugin

    I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信