Single Templates

What Are Singular Templates

A singular (or single) template is used to apply a consistent design across multiple pieces of individual content – whether they are posts or any custom post type.

Breakdance offers a visual interface for creating managing singular content templates. You can create and edit templates that apply to posts, pages, or custom post types using Breakdance.

In WordPress terminology, “singular” or “single” refers to any content that is displayed individually rather than as part of a list or archive. Singular content typically represents a single item like a post or or a custom post type.

  1. Post: This is a type of singular content that is typically used for blog articles. Each post you publish on a WordPress site has its own individual page where the full content of that post is displayed.
  2. Custom Post Type (CPT): WordPress allows developers to define their own content types, known as Custom Post Types. For instance, a real estate website might have a CPT named “Properties,” and each individual property listing would be a piece of singular content.

When you view a single post or custom post type entry on its own, you’re viewing “singular” content. This is in contrast to archive pages (like category archives or date archives) where multiple pieces of content are listed together.

The term “singular” in WordPress themes and templates is often used to refer to the template files that handle the display of such individual pieces of content. For instance, singular.php and single.php are a template files in the WordPress template hierarchy that can be used to display any singular content type if more specific templates. Breakdance provides a visual interface for creating these templates.

Creating a Singular Template In Breakdance

1. Starting the Process

  1. Begin by logging into your WordPress dashboard.
  2. Navigate to Breakdance -> Templates.

2. Adding a New Template

  1. Click on Add Template.
  2. Choose Add Custom Template.
  3. Give your template a name.
  4. Under the Location section, click Apply Template To.
  5. Inside the dropdown, choose the content type you want the template to apply to (e.g., Posts). Note: You have the option to further narrow down your selection with conditions. For the purposes of this guide, we’ll skip that step.
  6. Click on Add Template to create your custom template.

3. Editing Your Template

  1. To edit your newly created template, mouse over it and click Edit in Breakdance.
  2. Design the template as you wish, using dynamic data to link the design elements to data such as your post content or custom fields.
  3. Use the Preview Dropdown located at the top of the screen to see how the template will look when applied to each piece of content it applies to.
  4. Once you’re satisfied with the look and functionality of your template, click Save.

4. Viewing Your Template in Action

  1. Exit to the front end of your website.
  2. Navigate to a post to which the template applies.
  3. You’ll now see your custom template in action.