eddev
Snippets

Overview

Situation-based recipes from real eddev themes

Snippets are short recipes for specific situations. Use them when you know the problem you are solving and want a source-backed starting point to paste into a theme.

These examples are simplified from Sol People and SFF-style project patterns. Each page links back to the deeper docs for the underlying API.

RecipeUse It When
Querying Specific BlocksYou need one block, a subset of blocks, or blocks from another post/template part.
Type-Safe ACF DropdownsA CMS dropdown should become a generated TypeScript union.
Multiple Editable ZonesOne block needs more than one independent editable child area.
Automated Block LayoutsLayout wrappers should be driven by block flags instead of repeated in every block.
Submitting Forms To RPCA React form needs to call server-side code or a third-party API.
Custom Routes And URLsA fixed URL should map to a view, or generated WordPress links need remapping.
SVGsSVG uploads or raw SVG GraphQL fields are needed.

If a pattern already has a focused docs page, this section should link to it instead of duplicating it. For example, reusable GraphQL fragments are covered in GraphQL Fragments.