If you use a Thrive Theme Builder Theme, you have the possibility to create templates specifically suited for the custom post types you have on your website.
After you set up custom post types, with the Custom Post Types UI plugin for example, automatically generated archive pages will be assigned for them, in the back-end of your website. This is where Thrive Theme Builder comes in.
Once the custom post types are all set, you can create and customize specific “List Templates” for each of them, which will then be applied to their automatically generated archive pages.
Follow these steps to create those specific templates:
1. Access the Templates section
To be able to create a new template, you have to access the “Templates” section of the Thrive Theme Builder dashboard.
To do that, in your WordPress admin dashboard, hover over the “Thrive dashboard” item from the left-side menu, and then click on “Thrive Theme Builder” from the sub-menu that opens:
If you have completed your Site Wizard already, then you will be taken to the “Templates” section directly. If not, then look for the “Templates” section, from the left side, and click on it to open it:
2. Add the specific template
Once you accessed the “Templates” section, click on the “Add New” button, from its upper-right corner:
A pop-up window will open where you can set up and add the new template for the custom post type, as follows:
First, add the name you want for the new template in the field below “New Template Name”:
Then, you will have to choose between the “Single” and the “List” type for your new template.
Select the “List” type here, because you want to create a template for the list page (archive) that is automatically generated for your custom post type:
After you select the “List” template type, specific setup options for it appear below the “Single or List?” section in the pop-up window.
Choose List Type
Next, you have to select the List Type for the “List Template” you want to create. For that, click on the little down arrow (or the field with the current List Type) from the “List Type” section:
Then, since you want to create the template for a custom post type, make sure the “Post Types” is selected in the drop-down that opens:
Choose Archive Type
The next step is where you can actually choose your custom post type for the new template. Click on the little down arrow (or the field with the current Archive Type) from the “Archive Type” section:
A drop-down list will appear containing the default post types (like the Post and Page types), as well as the custom post types that are set on your website. Select the custom post type you want to create this template for, by clicking on it.
In my example, I am creating a template for the “Recipes” custom post type that is set up on my website:
Copy Existing Template or Start from scratch
Last but not least, you have to select whether you want to start building the design of your new template from scratch, or you want to copy the design of one of your existing templates for it.
To do that, click on the little down arrow from the “Copy Existing Template”section:
This will open a drop-down with the “Start from scratch” option, as well as a list of your existing templates:
If you want to start from scratch, click on the option to select it. If you want to copy an existing design, look through the list with the existing templates and click on the one you want to copy the design of.
When you have set up all the above mentioned aspects of your new templates, click on the “Finish” button from the pop-up:
Once you do that, the specific template for your custom post type will be created. You will see it added to your “List Templates”, as the default template that will be used for the page that is automatically generated for the custom post type:
3. Customize the template to fit the custom post type
After you have created the new template, you can start customizing it, in order to be suitable for the custom post type you have created it for. To do that you will have to edit the new template. Hover over it and click on the “Edit” option that appeared:
Then, the Thrive Theme builder editor will open and you can edit/customize the template the same way you would edit any other template. If you need details on how to do that, check out this tutorial.
Note: With regular templates, you usually have to apply the template to a page/post after you finish customizing it. However, this is not the case with the templates you create for your custom post types.
Since the custom post types have automatically generated pages assigned to them, you do not need to apply the templates created for them to any page. They will be applied by default to these automatically generated pages.
This was the way in which you can create a specific template for one of your custom post types. You can repeat this process to create separate templates for each of the custom post types you have set up on your website.
You can even create more templates for the same custom post type, if you want to try out more designs for it. Just keep in mind that out of these, the template that has the “Default” label, will be the one used for the respective custom post type.
It is also good to know that you can set any of the templates to be the default one, using its “Managing Options”, as described here.
If you want to find out more about Thrive Theme Builder templates, options & elements, check out our knowledge base section about them here.
Hopefully, this article was useful for you. If so, please reward it with a smile below :)