Hello I am trying to fetch some data from a children’s subpage.
I tried a lot of ways. My last try was this :
<?php foreach(page('project')->children()->find("projectsub") as $projectsub): ?> <?= $projectsub->projecttext()->kt() ?> <?php endforeach ?>
But all I get is this error message:
"Invalid argument supplied for foreach()"
And I am not sure what I am doing wrong here.