-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patterns with page post type do not render within the Site Editor #45859
Comments
There is a feature that allows for the Page pattern to be loaded on Add New Page in the editor. Does that not work for you? Here is the Dev Note: Page creation patterns in WordPress 6.0 Your idea would be similar so a theme developer can offer more page layout patterns for both, page editor and site editor? |
That works fine and properly, but not exactly related. My thought is that if a pattern is set to display on a Page Post Type, then it will not show up within the Site Editor (as its not that post type). I think it should be, as page patterns are useful for building out templates as well. :) |
Hi, |
Hi, |
Hey @richtabor - just looping through Stale issues and wanted to check in with you as to whether this is still relevant? |
Yes, this is still an issue. If I register a pattern (example gist) and assign it to only display for the page custom post type (I wouldn't want this About Page pattern to render on the "Choose a pattern" modal for any other custom post type) then it does not render within the Site Editor, where page CPT patterns are just as important. Here's the pattern rendering on page creation, properly: And here it's missing from the Pattern inserter of the Site Editor (it should be under "Uncategorized"): |
I just tested this again and the pattern does show up for me. Closing as fixed but let me know if I missed anything. |
@youknowriad I'm pretty sure this is still occurring.
|
If I'm not wrong, the "no starter pattern" there is because you're in "template visible" mode by default no? |
I just selected to add a new page in the Site Editor, just as I did in the post editor. |
What problem does this address?
I'd expect that full page patterns, that are designed for pages — not necessarily posts, products, or any other custom post type (CPT), would be available within the Site Editor, to drop within templates.
Currently any pattern that declares a post type is ignored by the Site Editor, which is fine for most CPTs, but for pages - it means that full designs cannot be leveraged from the Site Editor.
What is your proposed solution?
I suggest that "page" post type patterns should always be available in the Site Editor.
Visual
Added a test page pattern to Twenty Twenty Three (page CPT):
As seen within the Site Editor; no page pattern:
The text was updated successfully, but these errors were encountered: