WordPress
patterns/page-teasers-static.php
✔ Core
✔ Custom
- Use: a curated set of paths to other pages in a deliberate order.
- Not when the set should follow the page tree automatically, which belongs in Child Pages or Sibling Pages.
- Source: entered by hand in the editor.
- Content: an optional topic, a heading and an optional introduction; 2 or more teasers, each an image cropped to 16:9, a linked title and a short text, in a grid that takes any number and whose columns can be changed; one closing text link.
patterns/page-teasers-dynamic.php
✔ Core
✔ Custom
- Use: overview pages that should stay current without editing.
- Not when the order matters and must be set by hand.
- Source: a query over pages.
- Content: an optional topic, a heading and an optional introduction; the pages are chosen in the query, and 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; one closing text link.
Figma
Docs
- When building teasers manually (static), make sure that links are named consistently throughout the website. This improves usability and ensures accessibility (WCAG SC 3.2.3Opens in new tab)
