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:
Gutenberg categories tag cloud comments block update admin blog plugin shortcode theme wp-mail tags Meta Box
Tools and Services
Ajax natural sorting animation jQuery UI redirection drag and drop End of Life caching setup wizard debug random sorting PHP junk export spam free software documentation search post filter performance localization bugfixes statistics translation error eCommerce REST API WordPress ideas
Photo by Fotomek (Pixabay)