Skip Navigation

[Resolved] Content template not used by the custom type

This support ticket is created 2 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 2 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2611149
Image1.jpg

Hi,

I created a custom type called "Équipement" and added some equipment. I then created a page to display all the equipments I added and it works fine : hidden link

But if I click on one of the equipment in order to get the detail, I only get what's in the post even though I created a content template for the custom type Équipement that would display all fields including the image.

I've attached a picture of the content template page and as you can see it's like if there is no content in this dynamic source. But there is content.

As well, if I go into one of the post, it should take the "Template dynamically assigned by Toolset"

Any idea of what I should do? Thanks.

#2611205

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please try to resave the content template and check if that helps. If it does not:

Can you please share admin access details and let me dive in to the admin section and review whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2611491

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Unfortunately - the admin access details you shared with me is not working at this end.

Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2612131

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Content Templates modify the content when called from the WordPress’ built-in the_content function. Some themes do not use the_content function, but define their own function. In this case, Content Templates are not applied to selected posts on the front-end.

To solve this, you can enter the name of the function your theme uses on the Toolset->Settings page, under the Front-end Content tab. I've registered the following function name: render_block_core_post_content

I can see now its showing the content template content on frontend as well:
- hidden link

More info:
- https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/