Skip Navigation

[Resolved] Content template not working with 2022 theme

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by grahamP 1 year, 11 months ago.

Assisted by: Shane.

Author
Posts
#2354681

I am trying to: Setup a content template for a custom post type

Link to a page where the issue can be seen: hidden link

I expected to see: A post using the content template setup for it.

Instead, I got: The post not showing the template or any custom fields from the template.

The template works with other themes but not 2022.

#2354691

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

Thank you for getting in touch.

Would you mind allowing me to have admin access to the website so that I can have a more detailed look at this for you ?

Please where applicable please provide me with a link to an example page where I can see the issue.

I've enabled the private fields for your next response.

Thanks,
Shane

#2354709

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

Thank you for the credentials, however they don't seem to work.

Can you check them on your end and let me know if they work for you.

Thanks,
Shane

#2354729

Please try again with the details I previously sent.

#2354737

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

This should now be working.

What I did was to enable the "Theme support for Content Templates" settings and view the post on the frontend to see which function the theme is using to render its default content. Then I copied this function into the template function setting.

In this case the function being used was "render_block_core_post_content".

Once I added this custom function then the content template started showing up fine on the frontend.

Please let me know if everything is ok now.

Thanks,
Shane

#2355105

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.