WordPress.org

Ready to get started?Download WordPress

Plugin Directory

xili-tidy-tags

xili-tidy-tags is a tool for grouping tags by semantic groups or by language and for creating tidy tag clouds.

  1. Upload the folder containing xili-tidy-tags.php and others files to the /wp-content/plugins/ directory,
  2. If xili-language plugin is activated, groups of languages are automatically created. If not, you can also use xili-tidy-tags to group your tags in semantic group like technical, trademark...
  3. in theme, a new template tag is available : xili_tidy_tag_cloud Same passed values as tag_cloud but two new : tagsgroup and tagsallgroup . tagsallgroup can be the parent group slug, tagsgroup is one of the child group slug. If one or both are included, the cloud is built with sub-selected tags in this (theses) group(s).

Exemples of script in sidebar.php :

with xili-language plugin activated in multilingual website

<div><h2><?php _e('Tags cloud','xilidev');?></h2>
<?php if (function_exists('xili_tidy_tag_cloud') && class_exists('xili_language')) xili_tidy_tag_cloud('tagsgroup='.the_curlang().'&tagsallgroup=tidy-languages-group&largest=18'); ?>
</div>

with semantic group named as category and a group containing trademarks named trademark

<h2><?php _e('Tags cloud','xilidev');?></h2><?php 
if (function_exists('xili_tidy_tag_cloud')) xili_tidy_tag_cloud('tagsgroup='.single_cat_title('',false).'&tagsallgroup=trademark&largest=18'); ?>
</div>

example of a splitted tag cloud of authors group (here separated by hr) - change html tags if you want to build a table with 3 columns

<div><h2><?php _e('Tags clouds','xilidev');?></h2><?php if (function_exists('xili_tidy_tag_cloud')) xili_tidy_tag_cloud('tagsgroup=authors&largest=18&&number=15'); ?>
<hr />
<?php if (function_exists('xili_tidy_tag_cloud')) xili_tidy_tag_cloud('tagsgroup=authors&largest=18&&offset=15&number=15'); ?>
<hr />
<?php if (function_exists('xili_tidy_tag_cloud')) xili_tidy_tag_cloud('tagsgroup=authors&largest=18&&offset=30&number=150'); ?>
</div>

note about template tag

If the two args tagsgroup and tagsallgroup are empty, the content is all the tags as in current tag cloud but with more features for selecting or look as soon documented.

note about widget

If you create the single widget since 0.9.0, with 0.9.2 (which allows more than one), you need to recreate one, two or more widget(s) in theme admin UI.

Requires: 3.3 or higher
Compatible up to: 3.9.1
Last Updated: 2014-2-1
Downloads: 24,941

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,4,4
100,1,1
100,1,1 100,1,1 100,2,2
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1 100,2,2
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2 100,2,2
100,1,1
100,1,1
100,2,2 100,1,1
100,1,1
100,1,1