-
Hello,
I recently switched to RankMath from Yoast and so far I must say I love it! Such a great and easy to use plugin!I have one particular use case that I haven’t been able to solve though and I would like to ask for your advice on it.
I would like to add my WooCommerce Product Tags to the sitemap and I would also like to exclude them from the sitemap if they are empty.
But, I have a special product category on the site called “Hidden”. If I check this category, I have modified the WooCommerce loops to exclude the posts of that category so that they won’t be visible on archive pages.
Problem is, the posts categorized as “Hidden” can still have product tags and if all products in a tag archive is in the hidden category, the archive will be perceived as empty in a visitors and Google’s eyes.
So, I wanted to ask you if there is a filter that could be used to modify the exclude empty tags from the sitemap to check if:
There are products attached to the tag AND at least one of them do not belong to the “Hidden category”.
If the above statement is false, I would like to exclude the tag from the sitemap, otherwise include it.
Hope you can help me with this!
My best regards,
Jens.
The ticket ‘Filter for modifying the “exclude empty terms”?’ is closed to new replies.