A Plugin
Eventually I decided to publish a plugin that I initially wrote for the EcoBurma website to replace another one that led to loads of error messages and that could not be customized the way I needed it. Its purpose is to enable post tags to be sorted into groups. Now I can display the tags in different tag clouds, for example grouped by language:
United Nations Exile Blog Nargis Media Studies Internet Refugees non-profit University Budo Diasporas EU phishing Apple Flattr statistics Social Media Burma Center Prague Digital Divide ACTA
The main work was about writing the code in a “nice way”, i.e. readable, and uploading the files via svn to the WordPress repository. And, of course, once the plugin is out in the wild, you immediately discover some little things that you would like to change.
Wow, already 16 downloads!
Hey Christoph,
genau so etwas habe ich bisher vergeblich gesucht, vielen Dank dafür
!!
Gerne!
Hello,
There appears to be a bug with Tag Groups v 0.5 and WordPress v3.4.1. When creating menus from appearance -> menus an error is displayed on save.
“Warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\wamp\www\wordpress\wp-includes\taxonomy.php on line 2337″
I unfortunately don’t have the WP knowledge to try and fix this myself but thought I would let you know.
Regards
Thanks for reporting, I’ll look into it. I assume it doesn’t affect the functionality since it’s merely a warning.
It should be fixed now in 0.5.1.
Wow, thanks Christoph for the fix. Much Appreciated.
How can I use your plugin with a 3D tag cloud like TagCanvas(http://www.goat1000.com/tagcanvas.php).
I want to display 3D tags cloud according to categories on my category post page. Can you help?
Thank you.
It could be done by modifying the existing WordPress plugin for 3D tag clouds using TagCanvas.
In that plugin you edit the file tagCloud-html5.php and replace that function
wp_tag_cloud()byecho tag_groups_cloud( ...)… or just for testing withecho tag_groups_cloud( array( 'show_tabs' => 0 , 'include' => '1' ) );. If you want to have a different group for each category, you can find an example how to do it here.You probably want to save it as new plugin – otherwise your custom changes will be lost next time you update that plugin.
Perfect! Thank you so much.
You are welcome!
Servus Christoph,
kann man die Gruppen der Tags irgendwie in den Permalinks anzeigen? Ich habe eine Gruppe “Referenzen”. Dort sind Tags eingeordnet etwa “Ausland” und “Merkur”. Der Permalink sollte dann z.B. /referenzen/ausland oder /referenzen/merkur sein.
Ich bedanke mich so oder so,
Wolf
Momentan geht es nicht, aber es ist eine interessante Idee. Ich werde mal sehen, ob es einfach zu machen ist.
Danke für die Antwort, ich habe noch einer Erweiterung gefunden, Custom Permalinks http://wordpress.org/extend/plugins/custom-permalinks/ damit kann man Tags oder Kategorien einen Link mitgeben. Das funktioniert. Schönes Wochenende, Wolf
Super, und danke auch für den Hinweis! Ebenfalls ein schönes Wochenende wünsche ich!
How can I call just the Group name in a page template. I want to display both the tag when seleceted and which group it is in on separate lines
The only way I can think of now is to retrieve the array (last parameter must be “true”) and then filter out the required information. Maybe you can get some inspiration here. If you have the group name, you can get the term_group and then display all tags that belong to that group.