Skip Navigation

[Resolved] Use Toolset template for custom post type

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

Problem:

I am building a directory site using Toolset and the Kadence theme, with a custom post type called 'People' and a Toolset content template to display custom fields. However, the Kadence theme layout overrides my Toolset template, preventing my custom fields and layout from appearing.

Solution:

After troubleshooting, it was found that the "Event Tickets" plugin was causing the issue. Disabling this plugin allowed the Toolset content template to render correctly. Upon re-enabling the Event Tickets plugin, the Toolset template continued to display correctly for the 'People' custom post type. It’s unclear why disabling and re-enabling the plugin resolved the conflict, but this approach has been successful in other cases.

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 2 replies, has 2 voices.

Last updated by chrisL-13 1 month, 3 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2780625

__Tell us what you are trying to do?

I am building a directory site using Toolset and KadenceWP as my theme. I have created a custom post type called 'People' using Toolset. It has a number of custom fields that I need to display on each individual 'Person' page.

I have created a Content Template for the 'People' post type in Toolset that has a layout I like and can display the custom fields for the Person content type.

But when I view an individual person, WordPress is rendering the page using the Kadence 'People Layout' as configured in the customizer.

I can't see the custom fields and my layout is not there and there's no way to create it as a template.

__Is there any documentation that you are following?

No, but if there is some, that would be great.

__Is there a similar example that we can see?

See above.

What is the link to your site?

hidden link

And example of a person page would be here:

hidden link

#2781076

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Would you please check the WordPress Dashboard > Appearance menu?

Is the Kadence WP theme showing only the Editor sub-menu there? Or the submenu shows Customize, widgets, menus, ....

If the first one, that means it is a block based theme and Toolset can not override anything on such themes as they are not PHP based and do not use PHP.

But if it is the second type, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Thanks.

#2781077

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Would you please check the WordPress Dashboard > Appearance menu?

Is the Kadence WP theme showing only the Editor sub-menu there? Or the submenu shows Customize, widgets, menus, ....

If the first one, that means it is a block based theme and Toolset can not override anything on such themes as they are not PHP based and do not use PHP.

But if it is the second type, I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Thanks.

#2781785

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Thank you for the login information and you are correct the theme is not FSE.

I found out that the "Event Tickets" plugin is the cause of the issue.

As soon as I deactivate the plugin I see the content template working ok:

hidden link

I am not sure what it does to cause the issue but you can contact their support and ask.

Thank you.

#2781871

I went to the site and saw that, indeed, with Events Tickets disabled, the Toolset Content Template for 'People' was appearing as expected.

I decided to take some screenshots to use with my support ticket with The Events Calendar so I re-enabled the Events Ticket plugin.

But when I went to view a single person, I saw that it was still rendering using the Toolset template. I've been able to edit the Person template without any issues. Clearing the server side caches doesn't 'bring back' the wrong template.

I don't know why disabling then re-enabling the Events Tickets plugin would solve the conflict between it and Toolset. But I have heard of this sort of thing happening with other plugins.

So at this point I'm prepared to award the 'Win' to Toolset support and move forward.