<commit_before>---
title: Plugin Recipes
taxonomy:
    category: docs
---

This page contains an assortment of problems and their respective solutions related to Grav plugins.

1. [Filter taxonomies using the taxonomylist plugin](#filter-taxonomies-using-the-taxonomylist-plugin)
 
### Filter taxonomies using the taxonomylist plugin
 
#### Problem:
 
You want to use the [taxonomy list Grav plugin](https://github.com/getgrav/grav-plugin-taxonomylist) to list the tags that are used in your blog posts, but intead of listing all of them, you only want to list the most used items in a given taxonomy (such as the top five tags, for example).
 
#### Solution:
 
This an example where the flexibility of Grav plugins really come in handy. The first step is to make sure that you have the [taxonomy list Grav plugin](https://github.com/getgrav/grav-plugin-taxonomylist) installed within yoiur Grav package. After this has been installed, make sure that you copy `/yoursite/user/plugins/taxonomylist/templates/partials/taxonomylist.html.twig` to `/yoursite/user/themes/yourtheme/templates/partials/taxonomylist.html.twig` as we will be making modifications to this file.<commit_msg>updated the page link<commit_after>---
title: Plugin Recipes
taxonomy:
    category: docs
---

This page contains an assortment of problems and their respective solutions related to Grav plugins.

1. [Filter taxonomies using the taxonomylist plugin](#filter-taxonomies-using-the-taxo)
 
### Filter taxonomies using the taxonomylist plugin
 
#### Problem:
 
You want to use the [taxonomy list Grav plugin](https://github.com/getgrav/grav-plugin-taxonomylist) to list the tags that are used in your blog posts, but intead of listing all of them, you only want to list the most used items in a given taxonomy (such as the top five tags, for example).
 
#### Solution:
 
This an example where the flexibility of Grav plugins really come in handy. The first step is to make sure that you have the [taxonomy list Grav plugin](https://github.com/getgrav/grav-plugin-taxonomylist) installed within yoiur Grav package. After this has been installed, make sure that you copy `/yoursite/user/plugins/taxonomylist/templates/partials/taxonomylist.html.twig` to `/yoursite/user/themes/yourtheme/templates/partials/taxonomylist.html.twig` as we will be making modifications to this file.
{'fraction_non_alphanumeric': 0.07868991918332624, 'fraction_numerical': 0.0008507018290089324, 'mean_word_length': 4.613365155131265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6636103', 'n_tokens_mistral': 656, 'n_tokens_neox': 638, 'n_words': 282}