It is a common situation that you, the website owner or blogger, use the same contents in posts, pages, and other fields. Therefore, how beneficial it would be to have some content templates in place to reuse at any place and at any time.
In this beginner’s guide, we will firstly introduce the advantages of using content templates. After that, we will detail a simple method to help you add and use content templates in WordPress.
When and Why to Add Content Templates?
In daily lives, it is frequently seen that you need to reuse some content blocks, such as images, lists, tables, etc. In this case, you may choose to copy these content blocks to a new text editor hoping that you can paste them to the place where you need to reuse in the future. However, this method is not efficient and convenient for the following reasons.
- When you want to reuse the information that you have saved, you need to leave the WordPress editor, open another file, and paste the information to the WordPress post you are editing. This process wastes time and energy.
- If you save these content blocks to a local path, it is impossible to access them when you are using another computer, telephone, tablet, etc.
- Whether you store the content blocks you desire to reuse in the same file or multiple files, there stands a good chance that some chaos in the management and use of them might be generated.
As a result, we will recommend another better method – creating content templates in WordPress to help you out. Scroll down to check more thorough descriptions.
How to Add and Use Content Templates in WordPress?
WordPress comes with a tremendous number of helpful plugins, with which multiple functions can be added to users’ websites with convenience and ease. This is now happening. In the following sections, we will utilize a simple plugin named TinyMCE Templates to explain the detailed steps about how to add and use content templates in WordPress.
Step 1: Install the TinyMCE Templates plugin to the Admin Area
As usual, the first thing you need to do is install the TinyMCE Templates plugin. Go to “Add New”>”Plugins” on the admin area, search for this plugin, and then click the “Install Now” button as below. For any questions during this process, refer to our WordPress plugin installation tutorial.
Step 2: Create new content templates
Upon activation, a function called as “Templates” will be added to the sidebar of your dashboard. Click it and then navigate to the “Add new” option. Basically, content templates use a custom post type and can be designed in the WordPress editor.
Displayed in the following screen capture, you can start to create a new content template by entering a title that is easily identifiable. Then add the content blocks that you desire to reuse into the visual editor or text editor.
Besides, this plugin comes with another option – “Insert as Shortcode”. By checking this option, you are able to add this content block in a shortcode manner. If you do not want to use it as a shortcode, just disable this option.
If you want to add multiple content templates, repeat the operations above. In the final, remember to click the “Publish” button to make you template(s) in action.
Step 3: Insert content templates to posts
After creating the content template, it is high time to use it in the posts. Get started by creating a new post or simply editing an existing one. When you navigate to the post editing page, you can find a newly added button – “Insert Template” right under the post title. Click the button and you will see a popup page as below.
Open the dropdown list on the top left-hand corner and select a template that you have created. Then you will be able to see a live preview of this template, with which you can recheck whether there is a display problem or not. If not, click the “Insert Template” to add it to this post.
Similarly, if you want to add the same template to multiple places of the post or add different templates to different locations of the post, all you need to do is repeat the fore-mentioned operations.
Step 4: Insert content templates to pages
The process of inserting content templates to pages is the same as that of posts. Choose a page to edit and then select the target content template(s) for this page. If you are using the text editor, it would be displayed in an HTML form. If you are using a visual editor, it would be shown as below.
Step 5: Save changes and you are done
Whenever you have inserted the content templates in posts or pages, do remember to store all your settings. If the posts and pages are newly created, click the “Publish” button to share them with all visitors. And if those posts and pages you choose to edit are already published, click the “Update” button to enable changes.