Hello to All,
I would like to restrict the number of tags showed in the side bar. I would like show only the most 10 tags used. How I could modify the loop, in the following code snippet, to do that?
Any clue would be very appreciated, I don’t have experience in twig.
Thanks in advance
Carlos.
{% if taxlist %}
<div class="tagcloud">
{% for tax,value in taxlist[taxonomy] %}
<a href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax|e('url') }}">{{
tax|capitalize }} </a>
{% endfor %}
</div>
{% endif %}