Getting page children for tag filtering

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 $ from $page:

$articles = page('projects')->children()->visible()->flip();
1 Like

Ah of course. Thanks so much for the fast help. Feel free to delete this thread if it’s not very valuable.