Skip to main content

Patterns

This page shows you how the AI works with your WordPress patterns, and how a pattern shows in the HTML panel.

A section you repeat across pages, such as a newsletter signup or a call to action, is best kept as one pattern. The AI can place that pattern where you want it, so every page shows the same section.

What you can ask​

What you wantPrompt example
Reuse a pattern"Add my Newsletter pattern at the end of this page"
Make a pattern"Make this hero a synced pattern called Hero"
List patterns"Which patterns does this site have?"
Keep a pattern"Change the title of this section, keep the pattern below it"

Name the pattern in your message. A small model may rebuild the section from scratch when you only describe it.

The AI makes a pattern only when you ask for one.

Synced or not​

A pattern behaves on a page as it does when you insert it yourself:

  • Synced: the page holds a link to the pattern. Change the pattern, and every page that uses it changes.
  • Not synced: the page gets a copy of the pattern's blocks. You change that copy freely, and the other pages stay as they are.

A pattern from your theme or a plugin is placed as a copy too.

A change to a synced pattern shows on every page that uses it. To change the pattern itself, say so and name it.

From the chat or from your AI client​

Both place a pattern by its name. The rest differs:

ChatAI client (MCP)
Place a patternYesYes
List the site's patternsNoYes
Make a patternNoYes

In the chat, the AI sees the patterns already on the page you have open. For another one, give its name.

In the HTML panel​

A pattern placed on a page shows as one line:

{% embed 'newsletter' %}{% endembed %}

The name is the pattern's slug: a pattern titled "Newsletter signup" is newsletter-signup. A pattern from your theme keeps its registered name, such as theme/cta. To find a name, ask the AI for the list, or look at a page where the pattern is already placed.

Type that line where you want the pattern: it is placed once the line is complete. {% include 'newsletter' %} and {{ include('newsletter') }} work the same way.

Change the name on a line, and the block takes the other pattern. With a name no pattern has, the block stays as it was.

A pattern with properties or slots is a component: its line also holds the values the page passes and the slots it fills.

Limits​

  • Values of a placed pattern: the AI sets the properties and fills the slots of a component. The values WordPress lets you override on one page are kept when the AI changes that page, but the AI can't set them.
  • A name no pattern has: a new line with such a name places a block that renders nothing until a pattern has that name. In the editor, the block says so and lets you choose a pattern. Your AI client is told which patterns exist.
  • Patterns you may not edit: the AI can't place them, as the editor shows them unavailable.
  • The Library: a section saved to the Library takes its synced patterns with it, when they hold Unblock blocks only. A synced pattern that holds other blocks shows nothing on another site.

Next steps​

  • MCP Tools: the two pattern tools and what they return
  • Prompting: how to write a message the AI follows