Skip Navigation

[Resolved] updated toolset types and lost all templates

This support ticket is created 5 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 4 replies, has 2 voices.

Last updated by Luo Yang 5 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#1154805

I am trying to:update toolset types and views whilst maintaining my existing templates. hidden link is a template that works in the live environment, but when update the posts disappear until i change permalinks and back again then all template are back to default wordpress templates not customised toolset ones

Link to a page where the issue can be seen in the updated staging environment: hidden link

I expected to see: similar to this in the live environment hidden link

Instead, I got: this kind of template for events, posts and teachers etc hidden link

Also Teachers template broke before the update. I'm not sure what is happening here or how to fix them so they're all consistent and working correctly. Please help.

I inherited this site as pro-bono from another dev and theyre a small yoga studio so any help and advice here would be greatly appreciated.

#1155231

Hello,

I have tried the URL you mentioned above:
hidden link

But I can see a htaccess password protect window, can you check it?
Since the problem is in your staging website, please also provide the credentials of your staging website credentials in below private detail box, thanks

#1155475
#1155959

Thanks for the details, I can login your website, please edit the problem page "Our teachers" in your staging site:
hidden link

in section "Content Template", you are using option "Template for pages", but the content template "Template for pages" is empty:
hidden link

So it conduct the problem you mentioned above.

I suggest you edit the page "Our teachers" in your staging site:
hidden link

in section "Content Template", choose option "None", then test again. This option will output the page/post content directly

More help:
https://toolset.com/documentation/user-guides/view-templates/

#1159606

Np this hasn't solved my issue. It has only solved an issue that I created by mistake. I'm sorry, i think I've confused things with my example.

Please take a look at the live site where you can see a corrupted Teachers ('Team' - Teammate) profile.

hidden link

This has reverted to the default template whereas before it used to have a template very similar to this one for an event:

hidden link

You can get to each event by clicking on any event on the parent events page 'What's on":

hidden link

Same for

#1159626
staging2.JPG

It is very confused.

First, in the first post of this thread, you mentioned:

Link to a page where the issue can be seen in the updated staging environment:
hidden link

And expected to see:

I expected to see: similar to this in the live environment
hidden link

I have checked it again in the URL you mentioned above:
hidden link

It does work, and display same as your live environment, see screenshot: staging2.JPG

Second, for the problem of single "dt_team" post:
hidden link

That depends on your theme file, for example, Views content template only works in post content area, if you are going to use same theme template as single "event" post, you can copy your theme file "single-event.php" to "single-dt_team.php", edit the new file "single-dt_team.php", customize it with custom PHP codes to what you want.

More help:
https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
single-{post-type}.php – If the post type is product, WordPress would look for single-product.php.

For your reference.