Number conditional
Hi,
Does anyone know how to do this... Basically, if the price field equals a number then display the number format (as below),
<?php $key="cp_price"; echo number_format(get_post_meta($post->ID, $key, true)); ?>
ELSE
Display text (for instance some users are type POA in the price field).
So, I'd like numbers to be displayed with the number_format, but everything else as is.
Any ideas?
Thanks
Tom