Hello,
I am counting children and filter them on company name (in my example is de name of the company: DesignStudio).
<?php if($articles = $page->children()->filterBy('company', 'DesignStudio', ',')): ?> (<?= $articles->count() ?>)
<?php endif ?>
This works fine.
Now I want to count the total of companies. And tried this:
<?php if($articles = $page->children()->filterBy('company')): ?> (<?= $articles->count() ?>)
<?php endif ?>
But this doesn’t work. Can anyone help me?