WordPress.org

Forums

  1. NWTD
    Member
    Posted 2 years ago #

    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

    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/

  2. Khang Minh
    Member
    Plugin Author

    Posted 2 years ago #

    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

    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.

  3. NWTD
    Member
    Posted 2 years ago #

    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?

  4. NWTD
    Member
    Posted 2 years ago #

    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

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Better WordPress Google XML Sitemaps (with sitemapindex, multi-site and Google News sitemap support)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.