Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trashed or deleted or removed WooCommerce Shop Page fails to be removed from sitemap #7557

Closed
Pcosta88 opened this issue Jul 28, 2017 · 3 comments
Labels

Comments

@Pcosta88
Copy link
Contributor

Pcosta88 commented Jul 28, 2017

What did you expect to happen?

After deleting the WooCommerce Shop page it would be removed from the sitemap

What happened instead?

It was not

How can we reproduce this behavior?

1.Delete shop page

screen shot 2017-07-28 at 3 59 52 pm

2.See that it still appears

screen shot 2017-07-28 at 4 00 16 pm

Can you provide a link to a page which shows this issue? https://www.dynamiteindicators.com/product-sitemap.xml

Technical info

  • WordPress version: 4.8
  • Yoast SEO version: 5.1
  • WooCommerce: 3.1
@Pcosta88 Pcosta88 changed the title WooCommerce Shop Page fails to be removed from sitemap Trashed or deleted or removed WooCommerce Shop Page fails to be removed from sitemap Jul 28, 2017
@Pcosta88
Copy link
Contributor Author

Please inform the customer of conversation # 211580 when this conversation has been closed.

@stodorovic
Copy link
Contributor

Related: #7002

It's issue/behavior related to woocommerce. Customer needs to set other(new) page as shop base page. Woocommerce still has current page id (even it's in trash) as shop base and get_permalink( wc_get_page_id( 'shop' ) ) returns shop__trashed.

If customer wants to remove shop page from product sitemap, it's possible with filter from #7002. Probably this issue could be closed as duplicate of #7002. I see that customer want to set noindex to shop page and exclude it from product sitemap.

@thulshof
Copy link
Contributor

thulshof commented Aug 1, 2017

Closed - can be considerd as a duplicate of #7002
@stodorovic Thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants