The word “template” in itself implies something that is created once, which, then, may be applied to many other things as required. The same holds true when creating templates for your custom post types with the Toolset Layouts plugin.
The Layouts plugin allows you to create a template layout for your custom post type. Then, all posts of the custom type are displayed using this template. There is no need to apply the layout to each post, they all adopt the same template automatically. This is also true for newly created posts.
Let us see an example of a template layout created by a Toolset Layouts plugin. The following image shows a layout for a custom post type “Consultants”; the most important parts are highlighted in yellow.
In the middle of the editor area, you can see cells that make up the template layout. Each cell holds certain information that is displayed on the front-end. Some cells hold simple headings while others include shortcodes to render contents like a post title, post body, or custom fields created with Types. All of these shortcodes are added by simply using the editor’s user interface. No coding or remembering the shortcode names.
The following image shows how the same template layout displays our “Consultants” posts on the front-end.
One of the biggest advantages of using templates with Layouts is in making any changes to them; you may simply proceed to do so – the changes are automatically used for all posts of your custom post type. There is no requirement to make changes to each one. This is one example of how Layouts help you save time when designing and updating your site.
To learn more about how to design templates for your custom post types, please visit our page about using Layouts to create templates for your custom types.