have the following code in my default.html.twig file to display all the titles of the blog pages with the tag : dog:
<ul>
{% for post in taxonomy.findTaxonomy({'tag':'dog'}) %}
<li>{{ post.title }}<span>(0)</span></li>
{% endfor %}
</ul>
What i would really like to do is find all the tags and not just the dog tag, so i did the following:
<ul>
{% for post in taxonomy.findTaxonomy({'tag':'all'}) %}
<li>{{ post.title }}<span>(0)</span></li>
{% endfor %}
</ul>
I changed the dog to all , but this does’t really give me any results. I checked the documentation here for findTaxonomy , but it does’t help much , also in the inside the
, I would like to show how many articles for this perticular tag have been posted , eg. if there are five articles for the tag popcorn the html spitedd out should be:
You can play with all that, if you can hardcode your tags that may work. but if you need a more dynamic code, you will need to check how this plugin is made:
Thanks for that @hugoaf , what exactly is \blog-path here though ? is it something set in the header of the main blog page ? can you show me an example of how blog-path would look ?