=== Plugin Name === Contributors: the_dead_one Tags: tags, fixes Requires at least: 2.3 Tested up to: 2.3 Stable Tag: 0.1 This plugin allows for the intersection of category and tag archive and also fixes single_tag_title to handle multiple tags. == Description == [This plugin is based on information found here.]( http://boren.nu/archives/2007/10/01/taxonomy-intersections-and-unions/ ) This plugin is simply intended as an example of how to implement tag and category intersections. Please feel free to re-use the code in your plugin. Wordpress 2.3 introduced native tagging support, which is rather nifty. But did you know that you can display multiple tags in the one archive and even generate a feed for that? * "`http://your-blog-uri/?tag=tag1,tag2`" this would get all the posts tagged with tag1 **or** tag2. * "`http://your-blog-uri/?tag=tag1+tag2`" this would get all the posts tagged with tag1 **and** tag2 * "`http://your-blog-uri/?tag=tag1,tag2&feed=rss`" this would get you an RSS feed for all the posts tagged with tag1 or tag2 Neat huh? But did you notice that on the generated tag page you see only one tag listed in the header? This function fixes that and displays all tags used to generate that tag archive. It does this by silently modifying the `single_tag_title` template tag. It'll even work on the RSS feed generated by that page! What would be also be cool is to be able to intersect categories and tags so you could grab posts with tags from a specific category for example? With this plugin you can. It's not perfect however. It only allows intersection between a single category and one or more tags. Technically Wordpress should be able to support multiple categories and tags intersections but it didn't work for me in Wordpress 2.3. So go to one of your category pages. If your using using fancy permalinks then at the end of the url add "`?tdo_tag=a_tag`". If your not using permalinks then you can just use "`&tdo_tag=a_tag`". You must use the tag slug, not the full tag name. You can use multiple tags as above using "," and "+". * Example not using fancy permalinks: "`http://your-blog-uri/?cat=35&tdo_tag=tag1,tag2`" this would get all posts in category with id 35 and tagged with both tag1 and tag2. * Example using fancy permalinks: "`http://your-blog-uri/category/mycategory/?tdo_tag=tag1+tag2`" this would get all posts in the category "mycategory" and tagged with both tag1 and tag2. (The '+' and ',' are treated the same here) Currently looking at implementing a tag cloud based on tags used in a category by hacking the Wordpress tag cloud code... == Installation == Download the zip and extract the files to a subdirectory, called tdo-tag-fixes, of your plugin directory. i.e. `/path_to_wordpress/wp-content/plugins/tdo-tag-fixes`. Once you've got it installed, active the plugin via the usual Wordpress plugin menu. = Configuring = To configure the plugin, you must open up tdotf.php in your favourite text editor and look for these lines: ` // You can change this if you want. Do not set it to 'tag'. If you want to // disable this feature, just comment it out. // $tdotf_tag_get_var = 'tdotf_tag'; // Set to false if you do not wish tag archive titles to be correctly updated // $tdotf_fix_tag_title_auto = true; ` == Screenshots == == Version History == = v0.1: 6th December 2007 = * First release