Title: Custom module
Last modified: August 21, 2016

---

# Custom module

 *  [NWTD](https://wordpress.org/support/users/nwtechie/)
 * (@nwtechie)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-module/)
 * I’d like to create a custom module, but not sure where to start.
 * Essentially, I’d like to create a sitemap that cross joins a custom taxonomy (
   locations) with a custom post type (services).
 * The resulting URL would look like this: [http://domain.com/custom_post_type/custom_taxonomy](http://domain.com/custom_post_type/custom_taxonomy)
 * Another thing that I have to consider is that there’s a couple thousand of my
   custom post type and a few hundred of the custom taxonomy….which would yield 
   more than 50,000 URLs.
 * [http://wordpress.org/extend/plugins/bwp-google-xml-sitemaps/](http://wordpress.org/extend/plugins/bwp-google-xml-sitemaps/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-module/#post-3862129)
 * If you already have a custom post type and a custom taxonomy that are linked 
   together, you simply need to filter the permalink for that special taxonomy to
   be [http://domain.com/custom_post_type/custom_taxonomy](http://domain.com/custom_post_type/custom_taxonomy)
 * Once done the current taxonomy sitemap will handle the rest, no need for a custom
   module. The challenge here is to split the taxonomy sitemap.
 *  Thread Starter [NWTD](https://wordpress.org/support/users/nwtechie/)
 * (@nwtechie)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-module/#post-3862159)
 * > you simply need to filter the permalink for that special taxonomy to be
 * Is this a setting in the plugin? Is there any more documentation with more information
   so I can figure it out?
 * Would a custom module need to be setup to break them up into acceptable XML sitemaps
   that don’t exceed the 50k limit?
 *  Thread Starter [NWTD](https://wordpress.org/support/users/nwtechie/)
 * (@nwtechie)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-module/#post-3862202)
 * To clarify, I’ve altered my permalink structure so that my custom post type URLs
   are as follows:
 * [http://domain.com/cpt_post_name/taxonomy_term](http://domain.com/cpt_post_name/taxonomy_term)
 * So it results in something like this for this sample data:
 *     ```
       CPT Post Names: Dry Cleaning, Ironing
       Taxonomy Terms: Los Angeles, Sacramento, San Diego
   
       http://domain.com/dry-cleaning/los-angeles
       http://domain.com/dry-cleaning/sacramento
       http://domain.com/dry-cleaning/san-diego
       http://domain.com/ironing/los-angeles
       http://domain.com/ironing/sacramento
       http://domain.com/ironing/san-diego
       ```
   
 * I need to make sure all of these URLs make it into the sitemap in some way.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom module’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-google-xml-sitemaps_fffefe.svg)
 * [Better WordPress Google XML Sitemaps (support Sitemap Index, Multi-site and Google News)](https://wordpress.org/plugins/bwp-google-xml-sitemaps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-google-xml-sitemaps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-google-xml-sitemaps/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-google-xml-sitemaps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-google-xml-sitemaps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-google-xml-sitemaps/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [NWTD](https://wordpress.org/support/users/nwtechie/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/custom-module/#post-3862202)
 * Status: not a support question