---
title: 'Taxonomies: Is "category" and "tag" mandatory?'
url: 'https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704'
markdown: 'https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704.md'
date: '2026-06-21'
description: "Hi all, This is my second problem with Grav (first was with comment system) and I have some dudes about: I'm using taxonomylist and archives plugin under"
---

[Themes & Styling](https://getgrav.org/forum/themes-styling)

#  Taxonomies: Is "category" and "tag" mandatory? 

  Started by Rubén Gómez Antolí 9 years ago · 5 replies · 2369 views    

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19490 "Permalink") 

Hi all,

This is my second problem with Grav (first was with [comment system](https://getgrav.org/forum/plugins/comment-plugin-not-actived-when-route-differs-from-blog-t7317)) and I have some dudes about:

I'm using taxonomylist and archives plugin under Deliver theme but there aren't running well.

I change "category" and "tag" taxonomies terms to "categoría" and "Etiqueta" but, with these, neither "taxonomy list" and "archives" show any results.

(Archives show relates page in blog entry list page, but adding `@self` filters in conf, but not show in article blog page.)

This is my question: is mandatory to use "category" and "tag"? Doc says that is a *suggestion*.

I look for something similar in forum, but only encounter a similar [thread](https://getgrav.org/forum/archive/taxonomy-not-shown-t1906) without solution.

Thanks so much in advance, and sorry for my awful english, is not my mother language.

Best regards.

Salud y Revolución.

Lobo.

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19501 "Permalink") 

They are not required, but if you change them you will probably have to update your plugin configurations for archives plugin as they are defaulting to use `category`. TaxonomyList should just work though as it will use any filter.

NOTE: You do need to update your taxonomy types in your `site.yaml` file in order for Grav to know what taxomonies are going to be used: <https://learn.getgrav.org/content/taxonomy>

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19539 "Permalink") 

Hi @rhuk,

Thanks so much for your answer.

I view that is right for TaxonomyList, need to modify Deliver template in order to catch «Etiqueta», but I modified *archives.yaml* and was not running, and is not running still.

*Site.yaml* was modified too, of course.

I paste mi conf:

Taxonmy part of *site.yaml*:

```yaml
[...]
taxonomies: 
   - categoría
   - Etiqueta
   - category
   - tag
```

*Archives.yaml* conf:

```yaml
enabled: true
built_in_css: true
date_display_format: 'F Y'
show_count: true
limit: 12
order:
    by: date
    dir: desc
filter_combinator: and
filters:
    - categoría: [diario-e]
    - category: [diario-e]
    - '@self'
taxonomy_names:
    month: archives_month
    year: archives_year
```

I try to maintain *category* and *tag* in conf, but still no success.

Perhaps, should be conf related with some Twig template?

Thanks again.

Kind regards.

Salud y Revolución.

Lobo.

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19557 "Permalink") 

Solved the issue with taxnomies, I modified *blog\_item.html.twig* and *taxonomylist.html.twig* templates in Deliver theme.

But, I test (for test) with *sidebar.html.twig* template in plugin and Grav catch a *Twig\_error\_runtime*.

Copying plugin template to partial code in *sidebar.html.twig*, Grav fails with:

```twig
/opt/bitnami/apache/htdocs/user/themes/deliver/templates/partials/sidebar.html.twig

    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.</p>
</div>
{# Empezamos pruebas con el complemento de taxnomias #}
{% if config.plugins.taxonomylist.enabled %}
<div class="sidebar-content">
    <h4>Etiquetas populares</h4>
    {% set taxlist = taxonomylist.get() %}

       {% if taxlist %}
       <span class="tags">
            {% for tax,value in taxlist[taxonomy] %}
                {% set active = uri.param(taxonomy) == tax ? 'active' : '' %}
                <a class="{{ active }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
            {% endfor %}
      </span>
      {% endif %}

</div>
{% endif %}
{% if config.plugins.archives.enabled %}
<div class="sidebar-content">
    <h4>Archives</h4>

              Arguments

              "An exception has been thrown during the rendering of a template ("Illegal offset type in isset or empty")."
```

Fail is for *for* loop.

I say only for if there are a bug on taxonomylist plugin or wathever, how I say I can solve issue with taxonomy.

Continue in order to solve archives issue.

Thanks.

Regards.

Salud y Revolución.

Lobo.

last edited 09/11/17 by Rubén Gómez Antolí

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19564 "Permalink") 

> Copying plugin template to partial code in sidebar.html.twig, Grav fails with:

So sorry, I modify, again, *taxonomylist.html.twig* file in Deliver theme and, now, included these code from TaxonomyList plugin and runs well.

Perhaps, only fail when is used in sidebar because is different type of output.

Sorry again, how I say before I'm not a programmer and only have some basic skills of it.

Still fighting with *Archives* sidebar.

Salud y Revolución.

Lobo.

 [9 years ago](https://getgrav.org/forum/themes-styling/taxonomies-is-category-and-tag-mandatory-t8704#post-19565 "Permalink") 

I can solve issue with Archives too, but not in proper way.

If I change in *archives.yaml* file in plugin directory, archives runs, is taking my `user/conf/plugins/archives.yaml` conf but seems that don't apply.

Differents from debug info.

Modified `user/plugin/archives/archives.yaml`file:

```js
archives

    array:9 [
      "enabled" => true
      "built_in_css" => true
      "date_display_format" => "F Y"
      "show_count" => true
      "limit" => 12
      "order" => array:2 [
        "by" => "date"
        "dir" => "desc"
      ]
      "filter_combinator" => "and"
      "filters" => array:2 [
        "categoría" => "diario-e"
        0 => array:1 [
          "categoría" => array:1 [
            0 => "diario-e"
          ]
        ]
      ]
      "taxonomy_names" => array:2 [
        "month" => "archives_month"
        "year" => "archives_year"
      ]
    ]
```

Without modifying `user/plugin/archives/archives.yaml`file:

```js
archives

    array:9 [
      "enabled" => true
      "built_in_css" => true
      "date_display_format" => "F Y"
      "show_count" => true
      "limit" => 12
      "order" => array:2 [
        "by" => "date"
        "dir" => "desc"
      ]
      "filter_combinator" => "and"
      "filters" => array:2 [
        "category" => "blog"
        0 => array:1 [
          "categoría" => array:1 [
            0 => "diario-e"
          ]
        ]
      ]
      "taxonomy_names" => array:2 [
        "month" => "archives_month"
        "year" => "archives_year"
      ]
    ]
```

Modify consist only in change filters section from:

```yaml
filters:
    category: blog
```

to:

```
filters:
    categoría: diario-e
```

Is the same behaviour that I obtain from [comments plugin](https://getgrav.org/forum/plugins/comment-plugin-not-actived-when-route-differs-from-blog-t7317).

So, it's possible that any conf says Grav to get this behaviour?

Thanks.

Best regards.

Salud y Revolución.

Lobo.

<strong>Updated</strong>: Fixed *archives.yaml* change, error with cut and copy.

last edited 09/13/17 by Rubén Gómez Antolí

[Log in](https://getgrav.org/login?return=%2Fforum%2Fthemes-styling%2Ftaxonomies-is-category-and-tag-mandatory-t8704) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [Modular Page Background Image Display](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by TomW, 2 weeks ago |  | 2 | 200 | [2 days ago](https://getgrav.org/forum/themes-styling/modular-page-background-image-display-t9486 "by TomW") |
| [Inheriting a Theme does not quite work correctly](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by themetman, 3 days ago |  | 0 | 48 | [3 days ago](https://getgrav.org/forum/themes-styling/inheriting-a-theme-does-not-quite-work-correctly-t9501 "by themetman") |
| [\[quark\] mobile menu as the modular page menu](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by Bruno, 4 years ago |  | 4 | 1320 | [3 days ago](https://getgrav.org/forum/themes-styling/quark-mobile-menu-as-the-modular-page-menu-t1132 "by AH") |
| [Grav2 with Quark2 – All pages in the hamburger-menu of a one-pager](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by AH, 2 weeks ago |  | 0 | 173 | [2 weeks ago](https://getgrav.org/forum/themes-styling/grav2-with-quark2-all-pages-in-the-hamburger-menu-of-a-one-pager-t9485 "by AH") |
| [Is it a way to get the "content - summary" in a twig template ?](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431)    [Themes & Styling](https://getgrav.org/forum/themes-styling) · by FrViPofm, 2 months ago |  | 4 | 667 | [1 month ago](https://getgrav.org/forum/themes-styling/is-it-a-way-to-get-the-content-summary-in-a-twig-template-t9431 "by Paul Hibbitts") |
