Model repeating content (products, portfolio, posts) as a post-type collection that maps to a WordPress CPT on export.
Where: CMS → collections → post-type — Create a post-type collection
Key ideas
- Post-type collection: One of the CMS collection kinds (page, post-type, block, widget, repeater, taxonomy).
- Fields: Each CPT has fields you bind to design elements.
Steps
- In the CMS, add a collection of kind "post-type".
- Define its fields.
- Bind a template’s elements to those fields.
- Export to WordPress to generate the CPT.
Post-type definition
- Set a stable name/slug.
- Choose whether it has an archive.
- Choose supported WordPress features such as title, editor, thumbnail, excerpt, author, custom fields, comments, revisions, or page attributes.
- Add scoped taxonomies when entries need classification.
Designing templates and listings
Bind one detail template to the post-type fields and bind a repeater/listing to the same post type for archives. Configure the query, pagination, and empty state before export.
Limitations and important notes
- Changing slugs/supports after publishing can affect remote URLs and existing content.
- A CPT definition does not create meaningful entries by itself.