WordPress / WordPress/pattern-directory

Add support for creating patterns for templates, using template types

Open
#615 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Component] Pattern Creator
Dominant language
PHP
Stars
134
Forks
46
Avg merge
9h 4m
Merged PRs (30d)
19

Description

I'd like to be able to create patterns that can be used as templates for use in this replace flow for example. That way creators can build designs for index, single, page, and other templates, and I can swap out my theme's template with one of these.

TT4 does this currently by creating patterns with template types, like this one here. I'd expect to be able to create patterns on the directory in the same fashion, likely using a similar mechanism as block types (https://github.com/WordPress/pattern-directory/issues/609).

To start, core could ship this to sites much like we do the core header and footer alternatives, but eventually creators should be able to make patterns with template types and as a user I should be able to find those in the editor flows.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked replace flow and the block types discussion, then compare the Twenty Twenty-Four example in patterns/template-index-portfolio.php. Define how template types would be represented in directory patterns and how users would find them in editor flows; done means the proposed core and creator use cases are supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.