Custom taxonomies have been a core feature of WordPress since 2.3. This should’ve been added to the plugin long ago.
Thread Starter
Anonymous User 388516
(@anonymized-388516)
I’d like to hear from the plugin author what’s the status on this.
Arne, are there any plans to implement custom taxonomies in the sitemaps plugin?
Thanks in advance!
Just to add my vote to this. My scenario is pretty much the same as the original poster – however I have 2 custom taxonomies. It would be great if you could select these individually in the “Sitemap Content” section of the options.
So – is the author considering adding this, and if not, would you consider a patch if I can implement it?
Right-ho. I’ve implemented this for one of my sites. I you’re interested, you can find the patch here:
http://www.leewillis.co.uk/patches/google-sitemap-generator/include_taxonomies.txt
It hasn’t undergone rigorous testing, but it “works for me” π
I’ll try and get this included in the base release as well.
Thread Starter
Anonymous User 388516
(@anonymized-388516)
Hi Lee,
Awesome! Thanks for sharing your work — I voted for the feature on UserVoice, now let’s hope it gets included!
As for the patch, I’m eager to test it in my local environment, but I don’t know how to integrate it in my local copy (I’m using TortoiseSVN). It complains about /new and /old directories…
How can I make it work? (Or maybe you can share the final versions of the .php files?)
If you have a UNIX box, then use the -p1 argument with patch, e.g.
$ cd wp-content/plugins/
$ patch -p1 < path.to.my.patch.file
Should do it. Failing that, just grab the following two files, and put them into wp-content/plugins/google-sitemap-generator/
http://www.leewillis.co.uk/patches/google-sitemap-generator/sitemap-core.php
http://www.leewillis.co.uk/patches/google-sitemap-generator/sitemap-ui.php
As I mentioned previously though – this has only been tested on my site, and while it seems to work – I can’t guarantee it will work on yours – so please take a backup of sitemap-core.php and sitemap-ui.php before you start!
Let me know how you get on
Thread Starter
Anonymous User 388516
(@anonymized-388516)
Hi Lee,
I managed to get the patch working on my local box by overriding the files you provided, It worked flawlessly! Thank you so much!
I also dropped a comment in the UserVoice feature request that the patch works just fine.
Thanks again! π
I’ve emailed the author to try and get it included upstream – fingers crossed!
I’ve updated the patch to match the new version 3.1.5.
It’s in the comments at http://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/
Hi,
the last version was more a bug fix release which addressed the most annoying issues. I will have more time for the next version and will try to include your patch. Thanks!
I’ve updated the patch against 3.1.6, and also made it generate a modification time based on the the last update time of an article tagged with that taxonomy term.
The revised patch is here:
http://www.leewillis.co.uk/patches/google-sitemap-generator/include_taxonomies_v3.1.6.txt
Hi Lee,
Thanks for your patch! I’ve integrated it into the new release (with some small changes) π