How to execute a Kirby query from within PHP?

I want to have a text field where the editor can write a Kirby query. Then, in the template, I want that query to be evaluated as if it was used in a blueprint setting like query for pages.

You can do that via the Query class:


1 Like