Recipe 17: Fixing the case of the missing Taxonomy term
T here is a long-time odd bug in Views 5.x-1.6 taxonomy filtering, with a long-time patch available. In this recipe we will demonstrate the bug, and fix it.
Note
Ingredients
A taxonomy vocabulary populated with terms
Go to views/admin/build
, and override the taxonomy_term default view. Don't worry that we overrode it once already. We just need to give it a new name and new URL, along with a new Title, for good measure.
Name: region_term
Title: Region Taxonomy
URL: region/term
Add a filter such as: Taxonomy: Terms for Region (substitute your vocabulary name for "Region").
The first item in the list is missing. This is not always an immediately-obvious bug. You will need to know the contents of your taxonomy terms to notice this.
Many people resolve this Views 5.x-1.6 bug by adding a dummy term to the vocabulary, and then give it a low weight—ensuring that it's the one to be hidden. This may yield other issues. For instance, when you want to print...