I’m trying to follow the guide on filtering content by tags. I rewrote line 4 of the Blog controller as such:
$articles = $page('projects')->children()->visible()->flip();
The error I’m getting is:
Function name must be a string in that specific line.
This is a screenshot that shows my current project layout (it’s basically the kirby starterkit with some changes). And here is the controller and the template.
What am I doing wrong?
You are trying to get a page using the
page() helper, so remove the
$articles = page('projects')->children()->visible()->flip();
Ah of course. Thanks so much for the fast help. Feel free to delete this thread if it’s not very valuable.