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.
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.
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
Begin by logging into your WordPress dashboard.
Navigate to Breakdance -> Templates.
2. Adding a New Template
Click on Add Template.
Choose Add Custom Template.
Give your template a name.
Under the Location section, click Apply Template To.
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.
Click on Add Template to create your custom template.
3. Editing Your Template
To edit your newly created template, mouse over it and click Edit in Breakdance.
Design the template as you wish, using dynamic data to link the design elements to data such as your post content or custom fields.
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.
Once you’re satisfied with the look and functionality of your template, click Save.