Spintax

Template-based dynamic content generation for WordPress using spintax markup.

Available on: WordPress.org GitHub
Project site →

Spintax is a WordPress plugin for template-based content generation using spintax markup. Create reusable templates with randomised text variants, variable substitution, and permutation logic — then embed them anywhere on the site via shortcodes or PHP.

Key features

  • Enumerations{a|b|c} pick one option at random, with nesting support
  • Permutations[<config>a|b|c] pick N elements, shuffle, and join with custom separators
  • Variables%var% with global, local (#set), and shortcode-level scopes
  • Nested templates — embed templates within templates via #include or [spintax]
  • Object cache — rendered output cached via the WP Object Cache API (Redis / Memcached ready)
  • Cron regeneration — optional scheduled cache refresh per template
  • Validation — bracket matching, circular reference detection, syntax checking
  • Admin UI — code editor, live preview, shortcode copy, settings page

Syntax based on the GTW (Generating The Web) standard.

Status

v1.1.0 submitted to WordPress.org, awaiting reviewer response. GitHub repository is the canonical source while the plugin is in review.