# Jikji Guide

Jikji is a WordPress page builder that keeps a page as a **document** — HTML with a handful of `j:` attributes plus style rows — and, when the page is published, **compiles it to a PHP template and a CSS file** that the front end executes. Pages replace the content area of the theme template; in a block theme, templates, template parts and synced patterns can be Jikji documents too, so the whole page can be built this way.

## Choose your starting point

### Building in the editor
Start with [Getting started](01-getting-started.md) and [The editor](02-editor.md). Then explore blocks, styles, dynamic data, and templates.

### Working from a shell or script
Read the [Syntax reference](08-syntax.md) and [wp jikji](09-cli.md). Use the [REST API](10-rest-api.md) when HTTP fits your workflow.

### Using an AI coding agent
Start with [For AI coding agents](11-agents.md), then keep the syntax and command references nearby.

## All chapters

1. [Getting started](01-getting-started.md) — Requirements, installation, settings, permissions, and your first page.

2. [The editor](02-editor.md) — The toolbar, canvas, panels, breakpoints, states, and history.

3. [Blocks](03-blocks.md) — The block catalogue, media, code, shortcodes, and WordPress block islands.

4. [Styles](04-styles.md) — ID and class styles, responsive rules, accepted CSS, and theme layering.

5. [Dynamic data](05-dynamic-data.md) — Bindings, data helpers, queries, loops, custom fields, and pagination.

6. [Templates, parts and patterns](06-templates.md) — The Site Editor, hierarchy templates, parts, synced patterns, and fallback.

7. [The AI tab](07-ai.md) — Availability, settings, editing tools, approvals, and usage limits.

8. [Syntax reference](08-syntax.md) — The document model, IDs, j: attributes, block islands, and validation.

9. [wp jikji command reference](09-cli.md) — Every command, JSON output, placeholders, locking, and confirmation.

10. [REST API reference](10-rest-api.md) — The jikji/v1 routes, authentication, permissions, responses, and errors.

11. [For AI coding agents](11-agents.md) — Access paths, tested recipes, verification, undoing, and common pitfalls.

12. [Troubleshooting](12-troubleshooting.md) — Saving, publishing, rendering, data, templates, and AI errors.

## Conventions

- Shell examples use `$WP` for `wp --path=/var/www/site` and `$SITE` for the site URL. Placeholder IDs are written `{name}`; `wp jikji content save --placeholders` turns them into server IDs.
- Attribute values in examples are written as they must appear in HTML: `"` inside a value is `&quot;`, `<` is `&lt;`, `&` is `&amp;`. The compiler decodes them.
- Examples were run on a development site (WordPress 7.1.2, WP-CLI 2.11.0, Secure Custom Fields 6.9.5, a block theme) and checked on the front end before being written down. Everything created was removed afterwards.
- The authoritative contracts live in `docs/requirements.md` (syntax 3.2, compilation 3.4, helpers 3.5) and the phase plans; this guide explains them, it does not replace them.

