Skip Navigation

[Resolved] Posts get assigned Content Templates automatically

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

Problem:
When I create new posts, Content Templates get assigned automatically - but I want to choose manually.

Solution:
Head to Toolset > Content Templates > Sort by "Usage for single page" and check what template is assigned to your posts.
Open it to edit it and remove the check from the specific post type, and save.

Now, the new posts will not get assigned any Content Template automatically anymore.

This support ticket is created 7 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.

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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by tinaH 7 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#565630
no-template.png
new market.png
non-related preselected.png

When I create a new post that dosn't have a content template assigned to this post-type, another content-template is pre-selected by default. Even though this content template has nothing to do with this post-type.
If I publish the post the result is that nothing shows in the post-body because of the wrong content template is applied.

Default behaviour should be that no content template is pre-selected if none is assigned to the post-type.
See attached images.

#565800

Hello, Tina.

Here I will need some more information.

I tried to replicate this problem with no success.

I created several different Content Templates and Post Types.
Some templates are pre-assigned to some Post Types, others not.
When I create a New Post in a Custom Post Type that has no Content Template pre-assigned, I see "none" in the drop down where you choose the Content Template - which is correct.

But I see you use a Custom PHP File for your Post Type.
Maybe you also use some other additional settings I did not touch yet in the tests.

==> Can you elaborate the steps you took from the vanilla install (which does not include Custom Post Types PHP Templates) up to replicate this problem?

==> Maybe it's easier you send me a Site's Snapshot, with an explanation where to find what.
https://toolset.com/faq/provide-supporters-copy-site/
Then I could quickly see how to replicate the error and eventually report it.

Thanks, and now, up to the other tickets 😉

#566684

In Toolset > Content Templates > Sort by "Usage for single page" you see that the Post Type "Marknader" has a Content Template assigned. It's the "Booking Modal" CT.
There are 693 Posts of this kind where the CT is not bound yet.
On each new post, it tries to assign this CT.

This is the issue, as it seems.
If you remove the checkmark from "Marknader" in that CT, then the problem is solved.

Can you confirm this?

#566712

Yes 🙂
Problem gone.
I haven't noticed these sorting options, have they always been there ...
Always used the dashboard to see if there were any templates assigned.