Everything works fine but why is this script generating links to indexes that do not exist because there is no posts/article in that particular post types?
For example, it generate an index for “replies”. We have 0 replies so this index is not generated but there is a link to this index in the main xml and Google etc starts to whine about 404 errors.
Sure, I can use “Exclude following” blah but then I have to keep track of those manually.
Here is another example. We are experimenting with a shopping cart. Link to taxonomy_product_type.xml is generated but it is missing because it’s empty.
I hope you can fix this.