WordPress
patterns/page-teasers-sibling-pages-dynamic.php
✔ Core
✔ Custom
- Use: moving sideways within a section rather than deeper into it.
- Not at the top level, where there are no siblings to show.
- Source: the other pages under the current page’s parent.
- 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
The sibling pages are implemented using the Query block. The block is preconfigured in the pattern and must be adjusted after being inserted into a page. Specifically, the parent page (of the page it was inserted on) must be set as the parent page in the block settings.
