Skip Navigation

[Resolved] Impossible to use a Toolset content template for a custom post

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am trying to use Toolset custom templates for my custom posts, but WordPress defaults to my theme's templates (Twenty Twenty-Four). I've created a Toolset content template, but it doesn’t apply automatically.

Solution:

Toolset custom templates don’t work with block-based themes like Twenty Twenty-Four, as these themes don’t use PHP-based templates. Alternatively, consider using a PHP-based theme, which supports Toolset custom templates directly.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 2 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2779476

Hello,

I've followed the tutorial for creating custom posts, but I'm blocked when it comes to using Toolset custom templates.
I've created it, but WordPress would keep using the Theme's templates (e.g. single post).

My Theme is Twenty Twenty-Four: maybe it's the reason why it fails ?

I've tried changing settings but hélas.
The only way out I've found is to insert my Toolset content template as a block in a single post template I've created for my custom post.
Anything I'm missing ?

Also is it possible to reuse the Theme's settings (e.g. colour palette) in Toolset ?

But for that, my experience with Toolset is great so far, really good when it comes to really use content to customise the pages.

Many thanks for your help

#2779550

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Unfortunately, you can not use Toolset Custom Templates with Themes that are based on the block editor which 2024 theme is.

The block editor-based themes are the ones that if you hover over the Appearance menu you will only see the EDITOR option.

But the PHP-based themes are the ones that if you hover over the Appearance menu you will see:

Menus
Widgets
Customize
...

The reason behind this is that Toolset is a PHP-based plugin and the custom templates need PHP to render. The Block editor-based themes do not have PHP code.

Thanks.