This feature relies on the hooks registered within the Nectarblocks theme. If you are using a different theme, you will not be able to take advantage of this feature.
Templating
You can use Nectar Templates
to create templates which will be used to render the content of your Posts and Custom Post Types.
Archive Templates
in WordPress, Archive templates are used to display multiple related pieces of content together—what’s commonly known as an archive. These layouts power views like blog indexes, product category pages, and tag-based collections. For example, when you visit a blog and see a list of posts, you're looking at an archive page. Archives can be filtered by various criteria you're likely familiar with, such as author, date, category, search results, recent posts, tags, or other taxonomies.
Creating an Archive Template
-
Create a new template by going to the
Templates
page in the WordPress admin. -
Give the template a name.
-
Open the
Template
tab in the right sidebar and select anArchive
template. -
Add your desired content to populate the Archive template. The Post Grid block is the recommended way to display your posts in an archive context. You can combine static content with a Post Grid block to showcase your posts. Once a Post Grid is added, it will automatically inherit the post type selected for the archive template. As a result, the Query tab won’t be available, but you’ll still have full control over the layout and content of the Post Grid.
-
Publish the template.
An example of an archive template is shown above utilizing the Post Grid block, Taxonomy Terms block, Archive Title block, and Term Description block.
Nectarblocks currently supports creating custom archive templates for the core Post
post type as well as any custom post types registered on your site.
Single Templates
Single templates are the layouts used for individual posts—such as a blog article, a project, or a unique entry from a custom post type. They define how a specific piece of content is displayed when viewed on its own. Whether you're showcasing a portfolio item, or a custom post type item, this layout controls its presentation.
Creating a Single Template
-
Create a new template by going to the
Templates
page in the WordPress admin. -
Give the template a name.
-
Open the
Template
tab in the right sidebar and select aSingle
template. -
Add your desired content to populate the Single template. For Single templates, you can use any dynamic data type to pull content from the post. This allows you to create fully unique layouts with exactly the data you need.
In the editor, you'll see dynamic data fields displayed as placeholders when selecting data from the "Current Post" data type. This is because in the context of a template, the "Current Post" data type is referring to the post that will be displayed when the template is rendered.

