Adding commas to the number custom field?

This topic contains 4 replies, has 2 voices, and was last updated by  Paolo 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #45854

    expatsphere
    Free User
    Post count: 5

    Good day,

    I have a site that lists prices in larger numbers and would like to format them with commas. I don’t see anyway to do this in the interface is there a recommended way to go about formatting specific number fields with commas both on entry and when displaying them?

    Thanks for taking the time to look at this.
    –AJ

    #45969

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    there is no way to format custom text entered directly in the database.

    You’ll need to edit one by one or directly in the database via phpmyadmin.

    Thanks

    #46072

    expatsphere
    Free User
    Post count: 5

    Paolo,

    Thanks for the reply. Is there a filter that could be hooked into to modify display of custom fields? If not please consider it for a future release.

    Thanks again,
    AJ

    #46074

    expatsphere
    Free User
    Post count: 5

    Paolo,

    Never mind looks like I found it! It’s in custom_fields_functions.php,

    apply_filters('geodir_show_' . $html_var, $html, $variables_array);

    Just needed to take a fresh look at it.

    Thanks,
    AJ

    #46075

    Paolo
    Site Admin
    Post count: 31206

    Glad you solved and to see that you are defintely more skilled than me 🙂

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket