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.
Hover to pause · click for full sizePlaceholders
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 ownpre_get_postsstill 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_includeat priority 1000, which keeps Yoast / Rank Mathwp_headoutput 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
- Design the template page with placeholders and confirm it looks right in preview.
- Create the assignment.
- Run
test_template_assignmentand check it matches what you meant. - Visit a real post or archive URL and confirm.
Hover to pause · click for full size