• Resolved Conor

    (@jrocbaby)


    Hi,

    I having an issue with the Yoast generated sitemap, but I’m not sure if it is intended functionality or not (hopefully not).

    When I added all my products into the website via CSV upload, I turned the indexing for all products in Yoast off. This is due to a number of factors, mostly that most products do not need to be listed outside of the website. Another is to focus the Google crawl budget on products we did want listed on google.

    So I turned off indexing for products by default, and I’ve been slowly turning indexing on for products individually, in the ‘advanced’ tab of Yoast, on single product pages.

    The problem is that Yoast is now not adding these products that I am switching indexing on for into the sitemap. It still just shows the homepage tree and categories, but no products. I have at least 50 products now set to index, but Yoast won’t put these products into the sitemap. I don’t want to turn indexing back on for all products as most products don’t need to be listed on google, and we have thousands.

    I’m unsure of the best course of action, should I bite the bullet and turn all product indexing on?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @jrocbaby,

    Thanks for reaching out about your product sitemap. You are doing things the other way round.

    So I turned off indexing for products by default

    This means you don’t even get a product sitemap, as a first step. You need to turn on indexing for products.

    The problem is that Yoast is now not adding these products that I am switching indexing on for into the sitemap.?

    This is because there’s no product sitemap to add those products to. Once you turn on indexing for products, you get a product sitemap. Then, you have to exclude products you do not want indexed. If you prefer, you can exclude based on IDs. See this filter.

    Thread Starter Conor

    (@jrocbaby)

    Hi, thanks for your response,

    We have over 3000 products on our website, and only really want around 100 of them being listed by google and featuring in the sitemaps. Is the only way to do this to turn on indexing for all products and then manually turning indexing off for 2900 products?

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @jrocbaby

    As menitoned in our previous response, you can also use the filter wpseo_exclude_from_sitemap_by_post_ids to exclude some of the products from the sitemap. I understand adding thousands of product ID is difficult, however, these are the only available options at this moment.

    Thread Starter Conor

    (@jrocbaby)

    That’s a shame, yoast always seems to fall at the last hurdle

    Thanks for your help with this issue

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.