Is there a way to set up WordPress to allow authors to select a post template in the block editor?

[ad_1]

I’m not sure if I dreamt this or not, but I think I remember seeing a video from WordPress developers showing a system in the block editor whereby upon clicking “New Post” the user was presented with a set of predefined templates which, when clicked, prepopulate the editor with a bunch of blocks with predefined content: headers, paragraphs, images, etc.

I want to use this feature now but I can’t work out how to do it. I know I can define a single template to be used every time a certain post type is created programmatically (I’ve done this already for a project) but I haven’t come across a way to select from different templates.

I’m happy to define templates via plugin code if I have to, but if it’s possible via the admin dashboard, all the better.

So, did I dream this or does it actually exist!? I used to keep up with the WordPress developer blog but stopped reading about a year ago so my memory is vague…

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer