How do I exclude testimonial categories from my sitemap
Change the following in your theme’s functions.php
or sitemap.php
file:
Before:
<?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&title_li='); ?>
After:
<?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0&title_li=&exclude=8,10'); ?>
Make sure to replace the category IDs 8,10 with yours.