Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

http://domain.com/service-1/location-1
http://domain.com/service-1/location-2
http://domain.com/service-1/location-3
http://domain.com/service-2/location-1
http://domain.com/service-2/location-2
http://domain.com/service-2/location-3

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% **

share|improve this question
    
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
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.