This release of Tag Groups comes with two new shortcode parameters:
- The parameter link_append lets you add queries to the links of tags in tag clouds. Usually, these links simply take you to a page where all posts are listed that are tagged with the tag you just clicked on. Now, however, you can add for example “cat=123” in order to additionally filter by a category. Or you add a keyword that helps you track that visit with Google Analytics.
- The parameter heightstyle is only available for accordions and it helps you adjust the height of the tag containers (the panels that hide/unhide). By default all containers have the same height: This is the height of the largest container with the most or the biggest tags, while other containers with less tags have empty space at the bottom. Now you can use heightstyle=”content” to adjust each container to the ideal height and heightstyle=”fill” to adjust the size of the entire accordion to its enclosing container.
Read more about it on the page of jQuery UI or see the difference here
Here comes an example, using both new parameters:
[tag_groups_accordion orderby="random" heightstyle="content" link_target="_blank" link_append="pk_campaign=post&pk_kwd=clicked"]
Resulting in the following accordion:
Chatty Mango
Features
post filter Toggle Post Filter Dynamic Post Filter tag cloud Gutenberg block spiral natural sorting filter random sorting Meta Box caching pagination color waves
Software
debug post filter hack wp-mail HTML redirection comments REST API statistics Ajax sticky post tags spam categories documentation localization admin performance plugin update bugfixes junk search caching export free software error shortcode theme blog workaround