Fetching content by tag from structure with multiple items across multiple pages

One more thing: Because videos() is a native Kirby page method, you need to use

<?php foreach($p->content()->videos()->toStructure() as $vid): ?>

(or use another field name)

1 Like