Documentation

Template System

Point a Design Page at a class of content — posts, custom post types, archives, taxonomies, search, 404, the homepage, the WooCommerce shop.

What a template assignment is

A normal Design Page, pointed at a class of content. Instead of writing the words into content fields, you write placeholders that resolve per item at render time — so one designed page renders every blog post, or every category archive.

What you can assign a template to

  • Single posts, and any custom post type
  • Category, tag and custom taxonomy archives
  • Post type archives
  • Search results
  • Date archives
  • 404
  • The homepage
  • The WooCommerce shop archive

Manage them at Settings → Templates, or over MCP with create_template_assignment, list_template_assignments, update_template_assignment and delete_template_assignment.

Test before you ship: test_template_assignment resolves an assignment against real content so you can see what it will actually match.

Template assignments, managed in Settings → Templates.Hover to pause · click for full size
Template assignments, managed in Settings → Templates.

Placeholders

Single posts and CPTs

Template System — NoLeemits AI Design Documentation · · August 9, 2026 · noleemits · and the rest of the {{post_*}} family.

Build the template page with these instead of content fields. If you're writing the body of a specific post rather than a template, use the post's own content and .

Archives and taxonomies

{{archive_*}} · {{term_*}} · {{post_type_archive_*}} · {{search_query}} · {{paged_*}}

Fourteen placeholder families in total, covering archive titles and descriptions, term names, counts and metadata, the current search string, and pagination state.

WooCommerce shop

The shop archive is fully designable.

  • {{main_query}} renders the real product loop — WooCommerce's own pre_get_posts still applies, so filtering, sorting and pagination behave normally.
  • Seven {{loop_wc_*}} placeholders for the individual product card pieces.
  • Price slider, category dropdown and sort filters, driven by URL parameters, out of the box.
  • Integration is via template_include at priority 1000, which keeps Yoast / Rank Math wp_head output and pagination intact.

Single product pages are covered in Theme Compatibility.

Homepage

set_homepage and get_homepage accept either a Design Page or a regular page with the plugin enabled on it.

A workable order

  1. Design the template page with placeholders and confirm it looks right in preview.
  2. Create the assignment.
  3. Run test_template_assignment and check it matches what you meant.
  4. Visit a real post or archive URL and confirm.
A real post rendered through an assigned template.Hover to pause · click for full size
A real post rendered through an assigned template.