-
I frequently notice SEO issues on webshops where Woocommerce is used.
There’s an option to hide products from navigarion (both click-navigations as well as internal search functions) however if this is enabled, the product that’s hidden is still given a “<meta robots=”index, follow”> tag.
so this just means that the page is now an orphan page – that’s not good.
I then found out that you could write a simple script in functions.php to essentially say “if woocommerce stock status is not “instock” then –> create <meta robots=”noindex”>that works a treat since the product is now noindexed as it should be, but then we have the bread and butter of my question;
Is there a way to make sure that this now noindexed product is also removed from the site’s sitemap?
The ticket ‘noindexing sold out items’ is closed to new replies.