WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Marty Spellerberg v0.1

Template Part Shortcode

A (very) simple WordPress plugin for embedding template parts in your content.

Template Part Shortcode

The facts

Rating
5★ from 1
Active installs
100+
Price
Free
Last updated
9 Nov 2012
Added
Nov 2012
Requires WP
3.4
Tested up to
WP 3.4.2
Downloads
3,451

Our analysis

AI-assisted

Template Part Shortcode is a WordPress plugin that allows you to call template parts from the body of a post using a shortcode. Template parts are reusable snippets of code typically stored in a theme directory and accessed through the get_template_part() function. This plugin simplifies the process by enabling the use of the shortcode format [template part='somepart'].

This plugin is suitable for developers or users familiar with WordPress themes who want to enhance their posts with reusable code snippets without editing template files directly.

Best for: This plugin suits developers or users looking to streamline code usage in their WordPress posts.

What it does well

  • Enables shortcode usage for template parts
  • Facilitates code reuse within posts
  • Easy integration with existing theme structures

Where it falls short

  • Limited information on features and support
  • Last updated in November 2012
  • Tested up to an older version of WordPress

Verdict

Template Part Shortcode offers a straightforward solution for incorporating template parts into posts, but its age and limited updates may be a concern for some users.

From the developer

Marty Spellerberg's own description of Template Part Shortcode, lightly tidied.

Template parts are reusable snippets of code stored in your theme directory. Normally, they are called by other template files using the get_template_part() function. This plugin creates a shortcode for calling template parts from the body of a post.

Shortcode usage is: [template part=”somepart”].

Template parts must be stored in a “parts” folder within your theme directory.

If you use custom loops in your template parts, remember to use “reset_query” at the end to return the page to normal.

Read the full description on the official page →

Tagged as