Filtering out terms causes duplicate taxonomy listings
-
I’m using the bwp_gxs_term_exclude filter to remove some categories from my sitemap. I copied the documentation function and changed it to just one “case” line for category and then used an array of category slugs that I wanted to filter out.
Here is what my code is like (category slugs replaced for length:
switch ($taxonomy) { case 'category': return array('cat1', 'cat2', 'cat3', 'cat4','cat5', 'cat6'); break; } return array('');
One of these categories causes the whole taxonomy_category.xml sitemap to fail to load, timing out. I narrowed it down to cat5. If I try to just filter out cat5, it times out with a 500 error. If I try to filter out all but cat5, I start seeing duplications of sitemap links. (screenshot: http://d.pr/i/Vqi4 )
I tried deleting cat5 and recreating it. This caused one of my other categories (seemingly randomly) to become the one that breaks.
I don’t have an idea of what could be going here, do you? Any other information I can give about this to help debug?
http://wordpress.org/extend/plugins/bwp-google-xml-sitemaps/
- The topic ‘Filtering out terms causes duplicate taxonomy listings’ is closed to new replies.