i use the isotope plugin ( http://isotope.metafizzy.co/ ) to filter projects by a category on my page.
I don´t find the right solution to split categories in a category without a nested foreach loop.
I think the problem here is that each article needs all the classes or data filters in the div. So what you need to do, is have the second foreach loop within the div, not create a new div for each category:
for explanation: in my project.php i defined in the blueprints as options, checkbox fields like “cats”, “dogs” and so on. I want to filter the projects by these categories.
sorry it´s the first time i have worked with kirby and i have not so much experience with php