Skip Navigation

[Gelöst] Templates does not show up in normal post.

This support ticket is created vor 5 Jahren, 2 Monaten. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Dieses Thema enthält 5 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Nigel vor 5 Jahren, 2 Monaten.

Assistiert von: Nigel.

Author
Artikel
#1354695

I am trying to: use a template for normal posts.

Link to a page where the issue can be seen: any page

I expected to see: some CTF-Fields

Instead, I got: normal post content

In the overview of the Toolset Dashboard there shows up a hint (instead of the template used):
"In der Template-Datei Ihres Themes single.php für die Anzeige von Beitrag Elementen fehlen benutzerdefinierte Felder."

Do you have any hint why toolset is not working? Know issues with TagDic-theme "Newspaper"?

Kind regards, Martin

#1354805

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi Martin

The message in the dashboard appears when you have not assigned a Content Template to the post type and so the theme's single.php will be used (and this is unlikely to output custom fields you create with Toolset or any other plugin unless you explicitly edited the PHP file).

If you create a Content Template and assign it to a post type, but when you visit posts on the front end the template is not used, that is likely because the theme does not use the standard WordPress way of outputting the post content (namely the function the_content).

In that case, if the theme uses a custom function to output the post content, it may be possible to register that custom function so that Views Content Templates can still replace the content.

See this page for more details: https://toolset.com/documentation/user-guides/theme-support-for-content-templates/

#1354937

Hi Nigel, dear Toolset-Team,

I googled around and found some hints that the Newspaper theme from TagDiv is using its own function to display post content. Just registering was not doing the job - when I also deactivated "Layouts" my assigned templates etc. showed up again.

If I get it right - the theme form TagDiv is not compatible with "Layouts". If you do not need it, it works - if needed you have to change to another theme!

Kind regards, Martin

#1354945

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi Martin

Thanks for following up.

I just wanted to say that Views includes the theme compatibility settings for Content Templates, but the same is not available for Layouts, so you may be able to use the theme with Views templates okay, even though you cannot with Layouts.

#1354959

Dear Nigel,

I will do so! I am glad that I found out why CPT information did not show up anymore - after I changed the theme. As long as all the rest of Toolset does work, it is fine for me. Unfortunately it took a while to find out what is the problem. Now we can head on - adding functionality and user experience to our website. The recommended themes on your website are not so many and so stunning. So, to have the compatibility settings at hand, is worth a lot!

Apart of that, Toolset is a super important tool set for WordPress publishers!

Kind regards, Martin

#1354975

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Thanks Martin.

Luckily it is only a relatively small number of themes affected, specifically those which use non-standard techniques for displaying post content. Even then, it is possible to create a child theme if needs be and edit the PHP templates directly to replace the custom method with the standard WordPress method, though that can mean the loss of some theme functionality on such pages.