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.
| Recipe | Use It When |
|---|---|
| Querying Specific Blocks | You need one block, a subset of blocks, or blocks from another post/template part. |
| Type-Safe ACF Dropdowns | A CMS dropdown should become a generated TypeScript union. |
| Multiple Editable Zones | One block needs more than one independent editable child area. |
| Automated Block Layouts | Layout wrappers should be driven by block flags instead of repeated in every block. |
| Submitting Forms To RPC | A React form needs to call server-side code or a third-party API. |
| Custom Routes And URLs | A fixed URL should map to a view, or generated WordPress links need remapping. |
| SVGs | SVG 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.