With Toolset, you can use WPBakery Page Builder (formerly Visual Composer) to design templates for your custom post types.

Using this, you can create one design for all posts of the same type. When you need to adjust the design of a post type, you have to edit that one template and the changes will be applied to all the related custom posts.

 

The following images show how the same template, which was created with WPBakery Builder and Toolset, is applied to two different posts:

 

Content Template built with WPBakery Page Builder and Toolset fields Appearance of a tour on the front-end with the WPBakery template: This is another tour in Amsterdam –

As you can see, the same template is being used:

Custom post types Toolset and WPBakery Custom post types Toolset and WPBakery Custom post types Toolset and WPBakery

To design templates for your custom post types, follow the steps below:

    1. Go to Toolset -> Dashboard.
    2. Locate the custom post type for which you want to create the template and click on the Create Content Template button.

      Custom post types Template Toolset and WPBakery
      Toolset Dashboard

    3. You will be taken to the Content Template editor. Click on the WPBakery Page Builder button to design the template.
    4.  Click on Add Element, Add Text Block, or Add Templates to start creating your content template. In the Usage section, make sure that your content template is assigned to the correct custom post type, which is Tours in our example.

       

Custom post types Template Toolset and WPBakery
Launching the Page Builder.

 

  1. Now, use the three basic building blocks (Row, Columns, and Elements) to continue building your template:

Custom post types Template Toolset and WPBakery
Using the design from WPBakery Page Builder

 

In this integration, almost all WPBakery Page Builder Elements can be used to insert Toolset custom fields into your templates.

You can insert fields into Elements in two ways:

    • Use fields in the Text module when you simply want to display the fields. To do this, click on the Fields and Views button and select the field you want to insert.
    • Use fields inside any of the WPBakery Page Builder Elements when you need to use them as arguments. For example, you can insert a shortcode in the Tabs Element. In this case, use the Toolset Shortcodes dropdown at the top of the WordPress bar and click on Fields and Views to select the field you want to insert.

Custom post types Template Toolset and WPBakery

The WPBakery Page Builder templates that you design can include static elements and fields from your content. You can learn more about this on the page about inserting Toolset shortcodes into your designs.

  1. This is how our finished Content Template for Tours looks like:

Custom post types Template Toolset and WPBakery
Template built with WPBakery Page Builder and Toolset

  1. All the items in your custom post type “Tours” will use the exact same template that you build using the WPBakery Page Builder. If you modify this template later, the changes will be reflected for all the tours.
  1. My template is automatically applied for all my tours:

 

Custom post types Template Toolset and WPBakery
My template assigned to all my tours.

Themes bundled with the WPBakery Page Builder

Toolset can be further integrated with a theme to allow users to customize specific theme options for each template separately. If you are a theme author and want to see this kind of integration, contact us. If you are a theme user and would like to see it integrated with Toolset, you can request this from the theme author.

An example of what the theme options control panel looks like for the archive, if the theme is integrated with Toolset, is shown below.

Custom post types Template Toolset and WPBakery
Control the theme options under a template for archives.

What’s next?

Next Create templates for WooCommerce single-product page with WPBakery Page Builder

Need help?

If you need assistance with using Toolset in combination with WPBakery Page Builder, please visit our professional support forum dedicated to this topic.