How to Add Content Templates in WordPress Post Editor

Do you find yourself using the same style of content in your articles? Wouldn’t it be nice if you could create content templates and reuse them in your WordPress post editor? In this article, we will show you how to add content templates in WordPress post editor.

Reusable blocks in a WordPress post

Why and When You Should Use Content Templates?

Many site owners and bloggers reuse content blocks such as buttons, tables, author bios, etc in their articles.

You can save these custom HTML or content blocks in a text editor, but you will need to open an external app, open a file, and then paste the information. This takes too much time and breaks your writing momentum.

Another disadvantage is that you will not be able to use these notes if you are on another computer or device.

By creating content templates, you will be able to:

  • Create as many content templates as you need.
  • Store your content templates in WordPress.
  • Manage your content templates from within WordPress admin area.
  • Easily reuse them in any WordPress post without leaving the post editor.
  • Share your templates with other authors on your site to reuse in their articles.
  • Move your content templates with you if you ever move your WordPress site.

Having said, let’s take a look at how to make it happen in WordPress.

Setting up TinyMCE Templates in WordPress

First thing you need to do is install and activate the TinyMCE Templates plugin. Upon activation the plugin will add a new menu item labeled ‘Templates’ in your WordPress admin menu.

You need to visit Templates » Add New to add your first template.

Creating a new template

A template is basically a custom post type with a fully functional WordPress post editor. You can use the visual editor or switch to the text editor to add more advanced HTML code. You can also add images and other media files.

Start by creating the content block that you want to reuse in your WordPress posts. You will see an option to enable ‘Insert as shortcode’. Checking this option will allow you to use shortcode to add this content block.

Once you are done, simply click on the publish button to make your content template available for use in other WordPress posts.

Adding Your Content Template in WordPress Posts

The plugin makes it extremely easy to reuse your TinyMCE templates. Simply create a new post or edit and existing one.

Insert template button on post editor screen

On the post editor screen, you will notice a new button labeled Insert Template. Clicking on the button will bring up Insert Template popup.

Adding a template into a post

Select the template you created earlier from the drop down menu. You will be able to see a live preview of your selected template on the screen. Next, click on the insert template button to add the template into your WordPress post.

Content template inserted into a post

If you are using the visual editor, then you will see your content template as it would appear in posts. If you are using the text editor, then you will see the HTML for the template. You can now save and preview your post.

You can create as many templates as you want, and you can insert as many of them inside a post as you like.

We hope this article helped you add content templates in WordPress post editor. You may also want to see our list of 14 tips for mastering the WordPress visual editor.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Content Templates in WordPress Post Editor appeared first on WPBeginner.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s