Probably it depends on the place you want to fetch the price
I’ve created my customization by copying template
\wp-content\plugins\estatik\templates\content-single.php
to
\wp-content\themes\my-theme\estatik\content-single.php
es_get_the_property_field('price')
gives me an integer (if I set the price of property with decimal separator, then it gives float / double).
Seems that your code is placed out of scope – you get NULL there, then converted to integer gives you 0. So checking (after changing the type) if the variable is numeric or not makes no sense.
-
This reply was modified 2 years, 8 months ago by
Rafa?.