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
Toggle Post Filter Meta Box color spiral waves random sorting natural sorting pagination block tag cloud caching Gutenberg Dynamic Post Filter post filter filter
Software
Ajax wp-mail free software localization performance admin REST API comments statistics error search tags redirection documentation plugin bugfixes categories HTML workaround blog caching theme debug hack export shortcode spam sticky post update junk post filter