Guide

Block Area

Dynamic theme zone that resolves a block_module at render time.

Block name: prc-platform/block-area
Category: theme
Source: plugins/prc-block-area-modules/src/block-area/

Purpose

Like a template part, but editors pick which Block Module fills the zone, optionally scoped by taxonomy. Server render runs a WP_Query and wraps output for the Interactivity API.

Attributes

AttributeTypeNotes
refintegerPin a specific module
blockAreaSlugstringblock_area term slug
taxonomyNamestringScoping taxonomy
taxonomyTermSlugstringScoping term
inheritTermFromTemplatebooleanUse current archive term
blockAreaQueryCompletebooleanWizard completion flag
wizardStep (local)stringDefault intro
Other wizard localsNew area name, create flags, review phase

Supports: anchor, html: false, interactivity: true.

Variations

VariationTaxonomy
Topic Block Areacategory
Regions Countries Block Arearegions-countries
Collections Block Areacollection
Newsletter List Block Areaprc_newsletter_list

Editor behavior

  • Incomplete config → multi-step wizard (block-area-wizard/)
  • Complete → InnerBlocksAsSyncedContent preview of the resolved module
  • Inspector controls re-point area, taxonomy, or module

Frontend behavior

  • Suppresses non-menu areas when is_paged()
  • Applies the_content to resolved module HTML

Was this helpful?