Skip Navigation

[Resolved] Alternative telephone field not displaying

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

Problem:

Types shortcode does not work insider the shortcode [wpv-conditional], for example:

[wpv-conditional if="( NOT(empty($(wpcf-cl-alternative-telephone)) )"][types field='cl-alternative-telephone' title='Alternative Telephone'][/types][/wpv-conditional]

Solution:

There is a missing ")" in the "if" attribute of shortcode codes [wpv-conditional], I have modified the codes from:

<p>[wpv-conditional if="( NOT(empty($(wpcf-cl-alternative-telephone)) )"][types field='cl-alternative-telephone' title='Alternative Telephone'][/types][/wpv-conditional]</p>

To:

<p>[wpv-conditional if="( NOT(empty($(wpcf-cl-alternative-telephone))) )"][types field='cl-alternative-telephone' title='Alternative Telephone'][/types][/wpv-conditional]

Relevant Documentation:

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

Our next available supporter will start replying to tickets in about 7.28 hours from now. Thank you for your understanding.

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 6 replies, has 2 voices.

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

Assisted by: Luo Yang.

Author
Posts
#916402

homeinsuranceinformation.co.uk

Company Details

Deeside insurance

Look at new property claims accordion.

There should be another two fields displayed:
Alternative telephone and Opening hours.

I have checked the code and slug and cannot find why this does not display.

Thanks.

#916403

Log in details have been added.

#916405

I fixed the opening hours issue.

It is just the Alternative Telephone which does not display.

#916457

Hello,

Thanks for the details, I have tested it in your website, if use the Types shorcode directly
[types field='cl-alternative-telephone' title='Alternative Telephone'][/types]
It does output the value correctly, but it does not work insider the [wpv-conditional] shortcode, so the problem is abnormal, in case it is a compatibility problem, please check these:
1) Deactivate other plugins (except Types plugin) and switch to wordpress default theme 2017, and test again

2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below "private detail box", I need to duplicate same problem and debug it in my localhost, thanks.

You can put it into your own google drive disk, and share the links

#917135
#917262

Thanks for the details,
There is a missing ")" in the "if" attribute of your codes, I have modified the codes from:

<p>[wpv-conditional if="( NOT(empty($(wpcf-cl-alternative-telephone)) )"][types field='cl-alternative-telephone' title='Alternative Telephone'][/types][/wpv-conditional]</p>

To:

<p>[wpv-conditional if="( NOT(empty($(wpcf-cl-alternative-telephone))) )"][types field='cl-alternative-telephone' title='Alternative Telephone'][/types][/wpv-conditional]</p>

Please test again, check if it is fixed.

#917640

Thanks.

#917716

You are welcome