WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] How to save decimal number? (5 posts)

  1. rancor2k
    Member
    Posted 11 months ago #

    Hey
    I've created a pod with some custom fields for storing decimal numbers. I chose the plain number type, but trying to save a number like
    123,40 results in 123 being saved
    and
    123.40 gets changed to 12.340
    I'd prefer the , as decimal seperator, but a period would be ok as well. Any help?

    This is a german wordpress installation (if that matters).

    http://wordpress.org/plugins/pods/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 11 months ago #

    What formatting options do you have set in your Field's additional options?

  3. rancor2k
    Member
    Posted 11 months ago #

    Sorry, I've not seen the Advanced-Tab. Thx
    Great plugin btw, saved me a LOT of time!

  4. rancor2k
    Member
    Posted 11 months ago #

    Is it possible to say there should be max. 2 decimal digits, but none if they're 0?

  5. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 11 months ago #

    Not currently, but you can change how you want to output with your PHP in any way you'd like.

Reply

You must log in to post.

About this Plugin

About this Topic