Spintax is a content-generation toolkit for WordPress. Author reusable templates in spintax markup — enumerations, permutations, variables, conditionals and plural agreement — then either embed them inline via shortcodes and PHP, or bind them to ACF and post-meta fields so every matching post gets its own rendered variant on save, on a cron schedule, or on demand.
Markup
- Enumerations —
{a|b|c}picks one option at random, with nesting - Permutations —
[<config>a|b|c]picks N elements, shuffles, joins with custom separators - Variables —
%var%with global, local (#set) and shortcode scopes - Conditionals —
{?VAR?then|else}branches on whether a variable is set - Plural agreement —
{plural N: one|few|many}picks the grammatically correct form by count (RU/UK/BE 3-form, EN-style 2-form) - Nested templates — embed one template in another via
#includeor[spintax]
ACF / post-meta bindings
Pair a template with an ACF text/textarea/wysiwyg field or a post-meta key, configure it once per post type, and Spintax fills the field on every matching post — auto-seeding empty fields, preserving manual edits, and regenerating on save or cron.
- Bulk Apply — chunked async walks via Action Scheduler, with a synchronous "Run now" / WP-CLI fallback
- Logs — a per-walk record of what each run wrote, skipped or cleared
- WP-CLI —
wp spintax bindings list|apply|test|export|importfor staging → production sync - Migration — one-shot wizard for users coming from
nested-spintax-for-acf
Performance & privacy
Rendered output is cached through the WP Object Cache API (Redis / Memcached ready), with optional per-template cron regeneration. Everything runs locally — no external services, no tracking, no data leaves your server.
Syntax based on the GTW (Generating The Web) standard.