Skip to content

Releases: mjoslyn/loop-builder

v0.7.0

Choose a tag to compare

@mjoslyn mjoslyn released this 25 Jun 20:40

Added

  • Custom Field text alignment — the field block now exposes a left / center / right alignment control (via typography.textAlign). A small stylesheet promotes the field to a block box when aligned so the choice still applies for inline tags (span / strong / em).
  • Max items (total) on the loop — caps the number of items shown across all pages. The final page shrinks to respect the cap, and numbered / load-more pagination stop at the resulting page count.
  • Link entire item to post — an option that makes the whole loop item clickable via a stretched-link overlay, keeping genuine links and buttons inside the item independently clickable.

Developer

  • PHPUnit unit tests for the query-arg and pagination-cap logic (composer test).
  • wp-env + Playwright end-to-end tests (npm run test:e2e).

v.0.5.0: Add field text alignment, loop max-items cap, and whole-item linking

Choose a tag to compare

@mjoslyn mjoslyn released this 25 Jun 20:12
- Custom Field block: enable typography.textAlign so the editor exposes a
  left/center/right control; ship a small style so alignment also takes
  effect when the field renders as an inline tag (span/strong/em).
- Loop query: add a "Max items (total)" option that caps the total number
  of items shown across pagination (shrinks the final page and limits the
  page count for numbered pagination and load-more).
- Loop layout: add a "Link entire item to post" toggle that makes each item
  clickable via a stretched-link overlay, keeping inner links/buttons usable.
- Silence two long-standing PHPCS warnings (direct DB query in the fields
  endpoint; a comment misread as commented-out code).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>