Skip Navigation

[Resolved] Custom fields and/or templates disappeared

This support ticket is created 3 years, 7 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 3 voices.

Last updated by Luo Yang 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2075511

My site was working fine a few weeks ago. Now, however, when I click on links created in Toolset, they are broken. When I looked in Toolset, I am seeing templates missing.

Ex: hidden link
Clicking on either the Amazon or IndieBound button results in a 404 page. These links worked fine a few weeks ago and I have not made any changes to Toolset settings since then.

#2075551

Nigel
Supporter

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

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

When visiting the site I couldn't see the links you refer to, but looking at the page source I can find links where the href attribute is an incomplete unparsed types shortcode, which appears to be where the problem arises.

Could we get access to your site to check how this is set up and see if we can determine the cause?

I will mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site (a staging site would be preferable).

#2076713

Hello,

I can login into your website and see the problem.

You are using broken Types shortcodes, I have done below modifications in your website:
Edit the content template "Loop item in Books for a Country", add a shortcode block, with below codes:

<p style="clear: left;">
<a href="[types field='book-amazon-url'  output='raw'][/types]" target="_blank" rel="noopener noreferrer"><img style="width: 130px;" src="<em><u>hidden link</u></em>"></a> [wpv-conditional if="( $(wpcf-indiebound-url) eq '' )" evaluate="false"]<a href="[types field='indiebound-url' output='raw'][/types]" target='_blank" rel="noopener noreferrer"><img style="height: 50px;" src="<em><u>hidden link</u></em>"></a>[/wpv-conditional] [wpv-conditional if="( $(wpcf-book-public-domain-url) eq '' )" evaluate="false"]<a class="btn" href="[types field='book-public-domain-url'  output='raw'][/types]" target="_blank" rel="noopener noreferrer">[types field='book-public-domain-source-name'][/types]</a>[/wpv-conditional]
</p>
<hr style="margin: 5px 0; border: 15px solid white;">

Please test again, check if it is fixed, thanks

#2077367

Thank you! However, I'm still unsure why it broke to begin with. I hadn't changed anything in the code in probably over a year.

#2078723

I am not sure why it is broken, it might be a compatibility issue with other plugins/theme, and as I mentioned above, it is recommended to use Shortcode block to display shortcodes.