WordPress
patterns/page-teasers-child-pages-dynamic.php
✔ Core
✔ Custom
- Use: the end of a section landing page, leading to the pages beneath it.
- Not on pages without children, where it renders empty, and not for a hand-picked set, which belongs in Page Teasers.
- Source: the children of the current page.
- Content: an optional topic, a heading and an optional subline; every page needs a landscape featured image in the same ratio as the others, since the teaser does not crop it, and a hand-written excerpt; the query sets how many appear and the grid how many columns.
This pattern contains dynamic content and may be displayed incompletely in the live preview. Check the figma-preview to get a feeling how it looks with real content.
Figma
Docs
- This pattern uses the WordPress Query block. It must be configured so that the page the pattern is embedded on is set as the parent page in the loop. The child pages must then sit below it in the page hierarchy.
- Ideally, show no more than seven child pages, otherwise it becomes difficult to navigate.
