in line 2114 of the last version...
the SQL was giving me some real trouble
i have cpt 'produtos' with some custom taxonomies.. in the sitemap.xml it was only printing 1 custom taxonomy URL when it should be printing 19
the problem was line 2127:
"AND p.post_type = 'post'", solved excluding this line
and line 2129
"AND r.term_taxonomy_id = t.term_id", solved using:
"AND r.term_taxonomy_id = tt.term_taxonomy_id"
now its working fine printing all 19 URLs
if this is correct please update in the next version.