Skip Navigation

[Resolved] Not displaying a field

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

Problem:

Types shortcode does not display the field value.

Solution:

The client is using wrong field slug in the shortcodes, see the solution here:

https://toolset.com/forums/topic/not-displaying-a-field/#post-914609

Relevant Documentation:

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

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by StephenD4019 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#914479
Capture2.JPG
Capture1.JPG
Capture.JPG

Please go to:
Company details page
Then click on a company - I used Barclays in the screenshots.

I have added opening hours to the new property claims section. In the case of Barclays this is 24 hours.

When I go to the new property claims accordion the words opening hours and the relevant time .e.g. 24 hours are not displaying. As far as I can see the fields are set correctly.

Thanks.

#914483

I have added login details already.

#914609

Hello,

Thanks for the details, I can login your website, you are using wrong field slug in the shortcodes
I have done below modification in your website:
change the codes of your screenshot from:
hidden link

<p>[wpv-conditional if="( NOT(empty($(wpcf-new-opening-hours))) )"]Opening hours:  [types field='new-opening-hours'][/types][/wpv-conditional]</p>

To:

<p>[wpv-conditional if="( NOT(empty($(wpcf-opening-hours-new))) )"]Opening hours:  [types field='opening-hours-new'][/types][/wpv-conditional]</p>

You can get the field slug here:
hidden link

#915499

Thanks.