Skip Navigation

[Resolved] elementor dynamic field cannot show 0 value from custom field

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

Problem:

Elementor "Heading" element does not output custom field when value is 0.

Solution:

Instead of "Heading" element, you can use "Shortcode" element or "Text Editor" element to display the custom field's value

Relevant Documentation:

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

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

Last updated by chong-sumw 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1256321
Screen Shot 2019-06-03 at 1.50.13 AM.png

I have a toolset custom field of numeric value and have it displayed in elementor with the dynamic field. When the value is 0, the button displaying it will disappear.

Where is page is located: Business Single Post [elementor-template id="13"]

This applies to all numeric fields.

thanks for your help!

#1256591

Hello,

Thanks for the details, I can log into your website and see the problem.

I assume we are talking about the custom field "Profit", and the single Business post:
hidden link

Since it is a compatibility problem with elementor dynamic field feature, please check these in your website:
1) In case there is other compatibility problem of your website, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

2) If the problem still persists, please provide a copy of your website(you can put it into your own google drive disk, share the link in below private message box), I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1257731
#1257769

Thanks for the details, I am downloading the files, will update here if there is anything found.

#1257773

Thank you Luo.

However, I just found out that in view id (1645), the custom search form is not working as expected, it seems to cache results of first 1 or 2 searches, then further search on this page will not update new results .This is weird, coz when I created this view, I started by copied a working filter form (view id 536). I am hoping you could also help me to take a look. Thank you very much.

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/the-custom-search-form-is-not-working-as-expected/

#1257845
shortcode-element.JPG

For the original problem of this thread, here are what I found:

Please edit the problem post:
hidden link

In section "參考利潤(每月)​", you are using "Heading" element to display the value custom field "Profit", it conducts the problem.

Instead of "Heading" element, you can use "Shortcode" element or "Text Editor" element to display the custom field's value, see screenshot shortcode-element.JPG

I have tested it in my localhost, it can display the values correctly, but you will need to customize the styles according to your website settings.

For other new questions, please check the new thread here:
https://toolset.com/forums/topic/the-custom-search-form-is-not-working-as-expected/

#1258215

You are right and very helpful! My issue is resolved now. Thank you!