Have you already checked in WordPress under SEO>Taxonomies and ensured that any taxonomies you don’t want to appear in the sitemap have the setting for ‘Show in search results?’ set to ‘No’? Setting this value to ‘No’ will set those pages to noindex and remove them from the sitemap.
We also have additional information on configuring your XML Sitemap located at the following link: https://kb.yoast.com/kb/how-to-customize-the-sitemap-index/
I think we want that commercial_taxonomy to be reflected in the sitemap and page but it seems as though it isn’t coming through. It’s almost like in php where it should be echoing the value for whatever variable is there but instead of the variable you’re just getting the code. It makes me wonder if something is misconfigured and that’s why %commercial_taxonomies% is appearing instead of the taxonomy itself.
I’d guessing that’s CPT where custom taxonomy should be part of permalink. You should use the filter post_type_link to replace “variable” with term name. Something like this exists in WooCommerce (%product_cat%).
I don’t know is it possible in CPT UI. Rewrite rules seem that works. I can open /commercial/solarblabla/sunscape-duralite-by-madico in the browser. I can’t tell anything more without details about CPT and taxonomies…
Closed. No further questions.