# Fabrement — build your WordPress site in two clicks

Plugin version 1.7.0.

**Click one:** sign your site in to Fabrement. **Click two:** connect your AI — Claude, ChatGPT,
Codex, Cursor or any MCP client. Then say what you need. Your AI builds the site on your own
WordPress: pages, blocks, header and footer, catalogues with filters, fields, menus, forms, SEO,
languages — and now its own API and connections to other services.

No page builder, no theme lock-in, no config files. What you get is **native WordPress**: real
Gutenberg blocks with real PHP, CSS and JS, ordinary pages, post types and post meta. You own all of
it, and any developer can read it.

---

## Connect in one click

Open **wp-admin → Fabrement → MCP Connection** and press the button for your AI:

| Your AI | One click |
|---|---|
| **Claude (claude.ai)** | **Connect to Claude** — Claude's connector form opens already filled in |
| **ChatGPT** | **Open ChatGPT Plugins** — paste the shown name and address |
| **Codex** | add the shown address, press **Authenticate** |
| **Claude Code** | a ready command on the **Advanced** tab |
| **Cursor** | **Generate application password** → **Add to Cursor** |

You sign in to WordPress and approve — that's it. Nothing to write by hand, no JSON. The
connection renews itself, stays in your WordPress, and lasts until you press **Disconnect**.

**Stuck?** A help button on every Fabrement screen opens a chat with the developers; until your AI
is connected, a hint offers help setting it up.

**No theme yet?** Install and activate **Fabrement Base** right from the plugin's screens — a
minimal theme made for this plugin: Fabrement builds the pages, the theme only frames them.

Works with WordPress 6.9+ and PHP 8.0+, Yoast SEO, WPML, Contact Form 7, WPForms, ACF and other
plugins' blocks.

---

## Say it — get it

> "A site for a dance school: home page, teachers, a schedule of classes you can filter by style and
> level, prices, a contact form, in English and French."

From words, a screenshot or a **Figma** frame your AI makes:

- **Sections** — hero, cards, team, pricing, testimonials, galleries, sliders, video, popups, forms.
  Figma comes back as clean CSS with flex and grid, not absolute positions.
- **Modals** — a ready component for popups, side panels, bottom sheets on phones and fullscreen
  panels. Opens from any link or button, closes with Escape, the phone's back button or a click
  outside; animations and a blurred backdrop; loads only where it is used.
- **Header and footer** — classic or with the logo in the centre; a sticky header; a mobile menu as
  a side drawer, a fullscreen panel, a curtain or a short sheet, with nine open/close animations;
  footers with columns, with a call-to-action band, or a thin one-liner.
- **Pages and posts** — drafts first, then publish; nested pages; a real 404 page, a **410 page**
  for removed content, and **your own search results page**, designed like any other page.
- **Templates** — one frame for chosen pages, a whole post type or its archives, changed in one
  place. **Global sections** reused across the site.
- **One visual language** — colours, responsive typography, buttons and fonts as a design system,
  so every new section matches the rest.

Blocks you already have count too: your Fabrement blocks, your theme's, ACF and other plugins'
blocks — your AI places and fills them.

---

## Catalogues with filters — on every archive

Events, projects, products, vacancies, recipes, a blog — every archive of the site can become a
**catalogue of its own design**:

- **Filters with counts** — "Kyiv (12)", "Lviv (4)": only what is left, and how many each choice
  finds.
- **Price and number ranges** — min–max, or steps like "0–50", "50–100", "100+".
- **Chips of what is chosen** — "City: Kyiv, Lviv ×", and **Clear all**.
- **Sorting** — soonest, newest, cheapest, by name; empty values always last.
- **Search** that also looks inside your fields, **"Showing 7–12 of 23"**, **page links**.
- **Choose the post type** — in a list of several content types, visitors pick which ones to see.
- **Instant links or an Apply button** — works without JavaScript.
- **No reloading** — filters, page links and "Show more" bring new results in place; the address
  and the tab title follow, Back and Forward work, and a loading state shows while results arrive.
- **Shareable results** — the choice lives in the address: send a link to "jazz concerts in Kyiv
  under 500" and it opens exactly that.
- **Filter by anything the content has** — your fields (text, number, select, date, switch…),
  categories and tags, dates ("upcoming", "this month", "last 30 days"), author, other plugins'
  data.
- **Category pages too** — a category's page ("Concerts") keeps its category and filters within it; one design
  can serve the archive and all its categories, or one category gets its own.
- **An intro and a closing text** around the list, edited in Gutenberg; the intro shows on page
  one only.

**SEO-safe by design.** The filter works on WordPress's own archive, not a list beside it: real
`/page/2/` addresses, a real 404 past the last page, Yoast's canonical and prev/next intact.

**Any list, anywhere.** The same filters work in any section: "3 upcoming events" on the home page,
"related projects" on a project page, a full catalogue in a block. Two lists on one page don't get
in each other's way.

**Never breaks the page.** A wrong value in the address is simply ignored — no error, no empty
page.

---

## Connect your site to other services

Send leads to your CRM, show live exchange rates, load the logged-in customer's orders — your AI
writes it on your own WordPress:

- **Your site's own API** — endpoints at `/wp-json/fabrement-site/v1/…`: a form that sends leads
  on, a list that loads more items, a user's orders or favourites. Each one says who may call it,
  is checked before it is saved, and your AI tests it as a guest or as you.
- **Answers kept for a while** — the same answer for every guest, for everyone, per role, or one for
  each logged-in user (their orders, their cart); dropped when your content changes.
- **Service keys in one place** — CRM, Telegram, Stripe, maps, captcha. Private keys are stored
  encrypted and never reach your AI; public ones (a maps or captcha site key) can go into pages.
  Keys set in `wp-config.php` are respected.
- **Calls from the server** — your site talks to other services itself, so a key never goes into
  the page; answers can be kept for a while, and the calls you want to watch are in the log.
- **Fewer spam submissions** — a form submission counts only when it comes from a page of your
  site; for real protection your AI adds a captcha (Turnstile, reCAPTCHA, hCaptcha).

---

## Your own content, your own fields

- **Your own content types** — projects, events, team, vacancies — each with its address, archive,
  categories, its own page design for one record and its own catalogue.
- **Fields** — text, number, select, dates, image, gallery, file, link, icon, picked records, group,
  repeater. Editors fill them in a **Fabrement fields** box; values are ordinary post meta, and every
  catalogue can filter, sort and count by them.
- **Site-wide settings** — phone, address, socials — in one place, used everywhere.
- **Blocks editors can change** — texts, images, links, cards and slides are settings in the
  Gutenberg editor. Content changes without code and without asking anyone.

---

## Scripts and styles under control

Your AI looks after what every page loads — your own code and other plugins' too:

- **Site CSS and JS as records** — each with what it is for, where it loads, and one switch to turn
  it off.
- **Other plugins' scripts and styles** — taken off pages that do not need them, loaded after the
  page or after the visitor's first action, a small stylesheet printed inside the page.
- **See what a page loads** — every script and stylesheet on any page, and who added it.
- **Consent** — scripts can wait for the visitor's consent in the cookie banner.
- **Caches cleared** — page caches (WP Rocket, LiteSpeed, W3 Total Cache, WP Super Cache and
  others) and the object cache (Redis, Memcached), so a change shows at once.

---

## Redirects that look after themselves

Moving from an old site, renaming a page, closing a section — **Fabrement → Redirects**:

- **Old address → a page, category, archive or any URL**, or **"gone" (410)** so search engines drop
  it fast.
- **Follows the page** — when a page's address changes, its redirects still lead to it.
- **Whole sections at once** — `/old-blog/**` → `/blog`, with the rest of the address kept
  (`/old-blog/2024/post` → `/blog/2024/post`), or everything to one page.
- **Old dynamic addresses** — `/product.php?id=5` matched whatever the order of its parameters, and
  the value can go into the new address.
- **Campaign tags travel along** — `utm_…` and other parameters are passed on.
- **301, 302, 307, 308** — permanent or temporary.
- **Doesn't hijack live pages** — a rule on an address that still shows a page waits until that
  page is gone; redirecting a live page is a deliberate choice, and the page leaves the sitemap.
- **Ready before launch** — a rule to a draft or scheduled page sleeps and wakes when it is
  published.
- **No loops, no chains, no duplicates** — refused before they are saved; up to 100 rules in one go
  for a site move.
- **A clear list** — a note on every rule, visits and last visit, and warnings when something
  changed later (a loop appeared, a target went to draft, a rule is no longer needed).
- **Per language** on WPML sites.

---

## SEO, forms, menus, languages

- **SEO with Yoast** — titles, descriptions, site defaults, schema.org from your field values,
  archive SEO, and a list of pages still missing a description. Yoast's preview shows real values.
- **Forms** — real Contact Form 7 forms; WPForms placed and styled.
- **Menus, media and icons** — WordPress menus, your media library, an icon set of your own.
- **Several languages with WPML** — a version of each page per language, block texts in WPML's
  translation editor, per-field translation rules, translated addresses, a language switcher, and
  catalogues, filters and chips in each language.
- **Plugins on request** — your AI installs Yoast SEO, Contact Form 7 or another plugin from
  WordPress.org when you agree.
- **Answers about your site** — "how many events have no city?" — from read-only queries.

---

## Safe to let an AI work on

- **Preview first** — every change can be seen at the page's real address before anyone else sees
  it.
- **Versions and rollback** — every block keeps its history; one step back is one request.
- **Code checked before it is saved** — a problem is refused with the reason, nothing half-saved.
- **A broken block never takes the site down** — it is logged with block, file and line.
- **Safe mode** — one line in wp-config.php (`define( 'FABREMENT_SAFE_MODE', true );`) switches
  generated code off while repairs keep working.
- **The AI asks** before deleting anything and before adding a redirect.
- **Deleting the plugin keeps your site** — redirects, archive pages, connections, keys and your
  site's code stay; install it again and everything works as before.

---

## What it costs

The plugin is free, with no licence key. Signing the site in to Fabrement is free. Connecting your
AI costs nothing on Fabrement's side: it runs in the AI client you already use.

---

## For your AI

Connected? Start a new chat so it sees the tools, and let it read `get-skill-doc {id:"agent-map"}`
first — the site itself tells it how to work and which rules to read for each job.