Ready to get started?Download WordPress


Google XML Sitemaps
fix for taxonomies (1 post)

  1. Tiago Vargas
    Posted 12 months ago #

    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.



You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 12 months ago by Tiago Vargas
  • This topic is not resolved
  • WordPress version: 3.5.1