I have have a few pages on my site that walk through a process of querying a custom post type (services) with it's taxonomies (locations) -- example of custom post type (services) and example of taxonomy terms (locations). I'm currently using the Google XML Sitemaps plugin.

I created a sitemap and I was anticipating to see several thousands of links based on the queryable links found in my examples. However, I essentially had one link for each of my taxonomy terms and one link for each of my custom post types.

Since the structure of my custom post type URLs will be standardized as http://domain.com/%service%/%location%, is there a way that i can generate a sitemap that will list all the variations?

For example, if I had 2 services and 3 taxonomy terms my generated sitemap would be something like:


AFAIK, nothing will do this out of the box, hence me trying to do this on my own. Maybe I'm wrong. Or maybe unnecessary. The end result is for Google to index all variations of the services and locations, as http://domain.com/service-1/location-1 serves unique content that differs from http://domain.com/service-1/location-2

Any advise or information would be greatly appreciated.

** I realize that my examples will show links that have extra terminology in the URL, I'm in the process to remove those and the end result will ultimately be the format of http://domain.com/%service%/%location% **

  • Between services and locations what are terms and what are CPTs? – Rarst May 31 '13 at 16:53
  • Have you tried using a plugin to accomplish this? – GhostToast May 31 '13 at 16:57
  • @GhostToast I've tried the Google recommended XML Sitemap Plugin and recently sought out WPMU's plugin Infinite SEO. I haven't used the latter, but I inquired about it would operate. See my forum post and responses. – NW Tech May 31 '13 at 17:27
  • @Rarst i forgot to add my example links. My original post has been edited for the examples. My custom post type is called services and the related taxonomy is called locations. – NW Tech May 31 '13 at 17:31
  • I am not sure you choice of architecture is in line with WP internals. I can't remember term sub-nested in CPT in my experience, since terms are supposed to group posts, not the other way around. – Rarst May 31 '13 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.