How To

How to create a “page template” with the TukuToi Template Builder Plugin

Creating templates for your pages, posts, custom posts, archives, search results, and more is very easy with the TukuToi Template Builder. To get started, you want to create a new Template in the ClassicPress Dashboard > Templates and give it a discernible name. Then, in the section TukuToi Template Settings > Use this Template for: select the type of content you want this template to apply to. Let’s say you want this template to apply to ALL single items (posts, pages, etc) on your website, then you can select the option “All Single Pages, Posts & Custom Posts” Or, perhaps you want to apply it only to Single Pages and the 404 Page? Then select the appropriate options you can find in the selector. You can even assign this template to all posts of a type “cars”, and only to the post body of the posts of type “bikes”, if you want. You can create templates for your archives, homepage, blog page, and so on. The template hierarchy section will allow you to build a “cascade” of templates, so you can for example load a specific “parent” template on your pages template and another “parent” template on your single cars template. In the editor, the most important is as usual your HTML. Using ShortCodes, you can then populate the dynamic parts of the template. For example using the [tkt_scs_postinfo item="" show="post_content" filter="" sanitize="none"] ShortCode, you can output the Post Body of your posts in said template. Of course, templates will be usually very rich in content, but no fear: with TukuToi ShortCodes, TukuToi Template Builder and TukuToi Search and Filters you will find no limits. It is suggested to create Templates rather than putting the HTML into the single posts, because your authors or editors want to focus only on content, and not on structure. This way, you can separate the concerns easily.