Custom post type templates in Beaver Builder
Silent movies are often the best and this example from Thierry Pigot is no exception. In this video, Thierry creates a Beaver Builder template that displays the post title, subtitle, featured image, post content and two ACF custom fields using a feature of his upcoming Ultimate Beaver plugin.
The plugin will make it a simple task of displaying WordPress and Advanced Custom Fields on your layouts using ‘Field WP’ and ‘Field ACF’ modules added to the page builder. Simply drag and drop Field WP modules onto your layout and select available fields from the dropdown and for a completely customised solution, drag the ‘Field ACF’ module and select your custom field by partial type to select.
Once your single template is set up, it’s just a matter of selecting it in the new ‘Template’ tab in the Beaver Builder admin settings. Not to be confused with Beaver Builder’s own ‘Templates’ tab, the new tab allows you to select custom templates for your post types. An extremely elegant and simple solution.
One of the challenges I always face with using custom fields is the need to hard code child theme templates for use in custom post types. Having these fields available within the Beaver Builder page builder is an exciting option and opens up a wide range of possibilities for designing complex databases and layouts quickly. How ACF repeater and relationship fields would work is not yet known but I am sure that it will be just as elegant a solution as the standard fields demonstrated.
An archive template is in the works too so you’ll be able to display custom post archives with just as much elegance.