Skip to content

Snippet: Allow Templatera Templates to be Selected as Dynamic Templates

In Total 5.8.0 we optimized the new Dynamic Templates functionality and part of the optimization was to update Dynamic Template selectors to only allow you to select from the Dynamic Templates post type. If you prefer to use Templatera or were using it on an old site you can re-enable Templatera templates to be displayed in various "Dynamic Template" select dropdowns using the code below:

add_filter( 'totaltheme/theme-builder/template_post_types', function( array $types ): array {
    $types['templatera'] = 'Templatera';
    return $types;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top