Skip Navigation

[Resolved] Content template not used

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

Problem:

Use content template in "Newspaper" theme.

Solution:

"Newspaper" theme uses custom functions to display the single post content instead of standard WordPress function the_content()

You can try this:

Dashboard-> Toolset-> Settings-> Front-end Content
in section "Theme support for Content Templates", add the custom function name:
td_module_single_base::show_content

Relevant Documentation:

https://toolset.com/documentation/user-guides/templates/theme-support-for-content-templates/

This support ticket is created 4 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by stirea 4 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1424975

Hello,

I am trying to create and use a content template for displaying a single view for a custom post type I have just created ("annonce")
Unfortunately the standard single.php seems to be used instead when displaying a post assigned to this CPT.

I am wondering something: at first I forgot to assign a name to the content template created for this CPT and I got a white space replacing single.php (instead of a name for a content template) in the toolset dashboard. Then I assigned the following name to this content template: single annonce (notice there is no mention of .php). Could it be the reason?

See example in the info provided to the support team.

Thanks

#1425639

Hello,

Thanks for the details, I can log into your website and see the problem, here are what I found:
1) you are using "Newspaper" theme, this theme uses custom functions to display the single post content instead of standard WordPress function the_content()

2) I have done below modifications in your website:
Dashboard-> Toolset-> Settings-> Front-end Content
in section "Theme support for Content Templates", add the custom function name: td_module_single_base::show_content
Please test again, check if it is fixed.

More help:
https://toolset.com/documentation/user-guides/templates/theme-support-for-content-templates/

#1425997

Awesome! Thanks Luo, I wouldn't have found the solution by myself. My issue is resolved now. Thank you!