Skip Navigation

[Escalated to 2nd Tier] image doesn't show on front end, and custom fields is gone after refresh

This support ticket is created 3 years, 12 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/Karachi (GMT+05:00)

This topic contains 7 replies, has 3 voices.

Last updated by Waqar 3 years, 12 months ago.

Assisted by: Waqar.

Author
Posts
#2170701
screenshot 3.jpeg
screenshot 2.jpeg
screenshot 1.jpeg

Hi,

I have some trouble with custom post type and display them in the template.

This is the first time I using Toolset, and I follow the tutorial videos on your site.

I added a custom post type called "Products", and some custom fields.(Image, Product Description, etc.)

Add an image and some product description, but they doesn't show in the template, the product description is gone after I refresh the page after SAVED THE POST.

May I know what is going wrong here? Any suggestions?

Thanks,
Brandon

#2171043

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Your product description field is a WYSIWYG field, yes?

The prior update of Types introduced a bug where saving the post lost the content of the field (see https://toolset.com/errata/content-of-wysiwyg-field-lost-when-updating-posts/), but a new version of Types (3.4.14) has been published which includes a fix for this.

As for the problem with the image field, the content template is correctly assigned to the post type, yes?

It sounds as if the post is being displayed without a content template (i.e. what the theme would output) and therefore the post content is shown, but no image.

#2171103

My issue is resolved now. Thank you!

#2171515

Hi Nigel,

I have another bug… I have two WYSIWYG fields, and add contents to both fields, after save and refresh, the content in the first WYSIWYG field is there, but the content in the second field is gone… really frustrated with this…

As instructed, i have updated to the latest version 3.4.14.

Looking forward to your feedback.

Thanks.

#2171569

Hi,

Thanks for writing back.

I've performed some tests on my website with the latest Toolset plugins, but, couldn't reproduce this behavior.

Can you please share temporary admin login details for your website, along with the exact steps to see the issue?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#2171777

Thank you for sharing these details.

During testing on my website, I was able to reproduce this issue, and apparently, it happens only if the post body editor (content area) is disabled.

The "editor" section was also disabled for your website's "News" post type and I have enabled it from WP Admin -> Toolset -> Post Types and the WYSIWYG field is now working.
( screenshot: hidden link )

Note: This is the only change that I made on the website.

I've shared these findings with the concerned team for further review and will keep you updated through this ticket.

#2171785

Hi Waqar,

Thank you for your reply.

But what I really want is to disable the post body editor, if editor is there it will be very confusing to client, because I want to make the editing experience as simple as possible for my client. (like custom content type you can created with jetEngine, whereas there is no post body "editor").

According to you feedback, I guess I have to enable the "editor" for now.

Thank you for sharing these findings to developers. I really hope that custom post type can work with POST BODY EDITOR disabled in future, maybe in next update will be awesome.

By the way, I have another questions, I don't see the options to add a simple table inside WYSIWYG field? What happen if client wants to add a very basic table inside WYSIWYG field?

Thanks

#2171881

Your understanding is correct and enabling the "editor" is the workaround for now.

I'll keep you updated on the progress on the actual issue, through this ticket.

For table or any other HTML content, your clients can paste it in the WYSIWYG field manually. The available buttons on the field are only for the simpler HTML elements and tables are fairly complex.

Tip: it would be a good idea to add a note for your clients that if they're adding raw HTML code, for example, the table HTML, the "Text" tab of the WYSIWYG field should be active and not the "Visual" tab.

As per our support policy, I'll encourage you to start a new ticket, for each new question or concern.