Comments on: Custom Taxonomies In WordPress Plugins https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/ Tue, 14 Sep 2010 20:13:51 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-161 Sun, 25 Oct 2009 16:00:45 +0000 http://www.leewillis.co.uk/?p=113#comment-161 Actually – there’s a really small bug in 3.1.7 that causes the modification dates to not show up properly. Fortunately the fix is simple – just add the following to the end of the $lastMods query on line 2198:

GROUP BY r.term_taxonomy_id

So the whole query reads:

SELECT
r.term_taxonomy_id AS term_id,
UNIX_TIMESTAMP(MAX(post_date_gmt)) as mod_date
FROM
{$wpdb->posts} p , {$wpdb->term_relationships} r
WHERE
p.ID = r.object_id
AND p.post_status = ‘publish’
AND p.post_type = ‘post’
AND p.post_password = ”
AND r.term_taxonomy_id IN ( “. implode(‘,’,$termIDs) .”)
GROUP BY r.term_taxonomy_id

]]>
By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-160 Sun, 25 Oct 2009 14:51:37 +0000 http://www.leewillis.co.uk/?p=113#comment-160 @eddai – Actually version 3.1.7 should already support custom taxonomies – Arne (The developer) accepted my patches – I just hadn’t got around to updating this post just yet. Hope that helps.

]]>
By: eddai https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-159 Sun, 25 Oct 2009 13:18:20 +0000 http://www.leewillis.co.uk/?p=113#comment-159 @Lee,
google sitemap generator 3.1.7 is out..so will your patches work with it ?

]]>
By: cracks https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-78 Wed, 16 Sep 2009 00:01:18 +0000 http://www.leewillis.co.uk/?p=113#comment-78 wow. worked like a dream Lee – thank you.

]]>
By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-77 Tue, 15 Sep 2009 18:57:31 +0000 http://www.leewillis.co.uk/?p=113#comment-77 Since I’ve had a couple of requests from people who aren’t really into patching – I’ve put copies of the ready patched files here:

http://www.leewillis.co.uk/patches/google-sitemap-generator/3.1.6/sitemap-core.php
http://www.leewillis.co.uk/patches/google-sitemap-generator/3.1.6/sitemap-ui.php

Simply put these in wp-content/plugins/google-sitemap-generator in place of the current versions and you’ll get the new functionality.

Note: These are for version 3.1.6 of the plugin only.

]]>
By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-76 Tue, 15 Sep 2009 07:58:43 +0000 http://www.leewillis.co.uk/?p=113#comment-76 In reply to cracks.

Hi, You need to apply the patch to your current plugin using the UNIX “patch” utility. Quick example below (This assumes that you’ve got shell access to your webhost):

Download the patch (Make sure to grab the right version for the version of the plugin you’ve got installed), and save it in the plugin directory (wp-content/plugins/google-sitemap-generator) as patch.txt. Then run the following commands:

$ cd wp-content/plugins/
$ patch -p1 < patch.txt

If you don't have any joy with that, then let me know, and I'll try and put some ready-patched versions up – but that won't be until tonight I'm afraid …

]]>
By: cracks https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-75 Tue, 15 Sep 2009 02:01:33 +0000 http://www.leewillis.co.uk/?p=113#comment-75 wow. the Goog XML Siteap patch is much needed – great work.

now that i found it, what do i do with it / where do i put it / how ..?

]]>
By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-68 Sat, 05 Sep 2009 19:05:38 +0000 http://www.leewillis.co.uk/?p=113#comment-68 And another update against version 3.1.6 here. This version also calculates a modification date based on the most recent article tagged with a term – which should help Google pick up changes to your term archive pages:

http://www.leewillis.co.uk/patches/google-sitemap-generator/include_taxonomies_v3.1.6.txt

]]>
By: Lee https://www.leewillis.co.uk/custom-taxonomies-wordpress-plugins/#comment-59 Mon, 24 Aug 2009 21:32:10 +0000 http://www.leewillis.co.uk/?p=113#comment-59 There’s an updated version of the patch for Google XML Sitemaps v3.1.5 here:

http://www.leewillis.co.uk/patches/google-sitemap-generator/include_taxonomies_v3.1.5.txt

]]>