• Resolved smith43

    (@smith43)


    I think there is a misconfiguration, either in our CPT UI, or in Yoast, as I don’t think these taxonomy…variables?…should be appearing in the sitemap links like this…

    https://madico.com/commercial/%commercial_taxonomies%

    Could there be something reconfigured?

    Many thanks for any insight you may be able to provide.

    David

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

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

    (@devnihil)

    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/

    Thread Starter smith43

    (@smith43)

    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.

    Sa?a

    (@stodorovic)

    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…

    Jerlyn

    (@jerparx)

    Closed. No further questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Taxonomies appearing in sitemap’ is closed to new replies.