Pods Framework for WordPress
Home » Topics » Pods 1.x » How to strip decimals from a number column
This topic contains 2 replies, has 2 voices, and was last updated by codebloo 1 year ago.
I’ve looked through the plain_numbers package, other threads, display helpers docs and I just don’t get it.
I would really appreciate some specific help to get my column "order" to display as integers without decimals
My template calls in the field like this
$order = $question->get_field(‘order’);
and displays it like this
<?php echo $order; ?>
What do I need to put in a helper > Add helper > display box to strip the decimals
what do I need to do on the template page to run it through that filter?
Thank and sorry for such a rudimentary question.
Here’s very simple example, no helper needed (or you can replace $order with $value and make it a display helper to do the exact same thing:
You must be logged in to reply to this topic.