Skip to content
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

How to add a template via a plugin (podcast, woo, LMS) #189

Open
bph opened this issue Dec 19, 2023 Discussed in #185 · 5 comments
Open

How to add a template via a plugin (podcast, woo, LMS) #189

bph opened this issue Dec 19, 2023 Discussed in #185 · 5 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Dec 19, 2023

Discussed in #185

Originally posted by bph December 14, 2023
This question came up quite a bit in the last few months. Example
It might not be possible, as I still see this issue open: Add support for adding templates and template parts for plugins #42362

So this is more a placeholder Topic idea, when this is worked out in core.

@bph bph added flow: needs writer the idea/pitch needs a writer flow: needs input let's discuss this. flow: approved can move forward Building Blocks plugin development labels Dec 19, 2023
@bph
Copy link
Collaborator Author

bph commented Dec 19, 2023

This is the original issue WordPress/gutenberg#41401

@petrio-seo

This comment was marked as spam.

@justintadlock
Copy link

I have a solution for this: https://gist.github.com/justintadlock/cfcdcdf47ea785e84c8575dddc68ea37

There are several possibilities that could be explored based on the code in that Gist. It's specific to virtual pages, which is what I'm assuming is the biggest pain-point. But there are things that plugins can do now to make their "regular, non-virtual" templates editable in a block theme.

Anyone is welcome to take this code and run with it. I don't know what kind of bandwidth I'll have to fit another tutorial into my schedule in the immediate future, so I'll leave this topic unclaimed. But if no one picks it up, I'm OK with adding it to my list after the WP 6.5 update is out.

@justintadlock
Copy link

Just an update from my end: I still have #238 and #239 to work through over the next few weeks. After that, I'm happy to take this one on. It might be mid-to-late April. But I'll leave this unassigned in case someone wants to try their hand at it.

@bph bph removed the flow: needs writer the idea/pitch needs a writer label Mar 26, 2024
@annezazu
Copy link

annezazu commented Jun 6, 2024

Chiming in here that this PR is very much underway: WordPress/gutenberg#61577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants