2013-10-16, 22:57:15
(2013-10-16, 21:55:37)blackeye Wrote: Hi all,
strange thing's happening to me.
I created a special page with the text field for a price. When I fill-in "0" (zero) in that field, I'm unable to output it. When I'm editing the page, I still can see that "0" is filled in, but when I try to output it, nothing appears (neither with get_special_field nor with return_special_field). When I add extra space or anything else, it's working fine.
It seems to me, that the system thinks that "0" means "nothing's filled", thus outputs nothing.
Any suggestions?
Thanks
You could use PHP to test for the value
PHP Code:
<?php if(return_special_field('price') == '0') { echo '0'; } else { get_special_field('price') ; } ?>