Would it be possible to get the count of albums belonging to an specific tag?
I’m tagging each album with different tags (i.e Gardening) and I would like to show a tag cloud like ‘Gardening (3)’
It would essentially show how many albums are using this specific tag (i.e 3)
This is how I’m showing the tags:
<?php $tags = $photographyPage->children()->listed()->pluck('tags', ',', true); foreach ($tags as $tag): ?> <li class="button" data-filter=".<?= (str_replace(' ', '-', strtolower($tag))) ?>"> <?= $tag ?> <span>()</span> </li> <?php endforeach ?>