You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
WooCommerce pages which are no-index (my account, cart and payment pages)
are still included in Yoast sitemap.
Google Search Console also reports this as an error because the
pages are listed in sitemap but are no-indexed individually.
To Reproduce
Install + activate WooCommerce plugin.
Install + activate Yoast SEO plugin
Expected behavior
The WooCommerce no-indexed page being excluded from the sitemap.
Isolating the problem (mark completed items with an [x]):
I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
This bug happens with a default WordPress theme active, or Storefront.
I can reproduce this bug consistently using the steps above.
This is probably caused by WooCommerce injecting the no-index meta/header separately from Yoast.
The WooCommerce pages can be excluded from sitemap using the wpseo_exclude_from_sitemap_by_post_ids filter.
The text was updated successfully, but these errors were encountered:
strarsis
changed the title
no-index WooCommerce pages not excluded from sitemap
no-indexed WooCommerce pages not excluded from sitemap
Sep 7, 2018
The no-index and sitemap are both parts of Yoast SEO, so it's unlikely this bug is caused by WooCommerce. Have you reached out to their support?
Also, i'm unable to reproduce this on our setup where we use Yoast SEO Premium. Whenever i set a page to "no-index", it automatically gets removed from the sitemap.
This is something Yoast would have to handle in their plugin, as sitemaps are not part of the WooCommerce plugin. I would reach out to them. Hope this clears things up.
Describe the bug
WooCommerce pages which are no-index (my account, cart and payment pages)
are still included in Yoast sitemap.
Google Search Console also reports this as an error because the
pages are listed in sitemap but are no-indexed individually.
To Reproduce
Expected behavior
The WooCommerce no-indexed page being excluded from the sitemap.
Isolating the problem (mark completed items with an [x]):
This is probably caused by WooCommerce injecting the no-index meta/header separately from Yoast.
The WooCommerce pages can be excluded from sitemap using the
wpseo_exclude_from_sitemap_by_post_ids
filter.The text was updated successfully, but these errors were encountered: