Fetching data from children's subpage

Looks like you are new to PHP? If you’d like some tutorial recommendations, please let us know. There’s also this recipe: https://getkirby.com/docs/cookbook/templating/php-templates

If you mix HTML with PHP, you always have to close your PHP statements before you continue with HTML:


if ( $p = page('community') ) :
  $lblogs = $p
                ->sortBy(‘date’, ‘asc’)
                ->filterBy(‘tags’, ‘podcast’, ‘,’)
  foreach ( $lblogs as $article ) : ?>
    <!-- html here -->
  <?php endforeach; ?>
<?php endif; ?>

Thanks, I am not new, I later did it my own way and it works. I appreciate