davidM-53
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Number Field Commas
Started by: davidM-53
in: Toolset Professional Support
Problem: I would like to format a custom field number so that it adds commas every 3 digits and also displays two decimal values, like "1,000.00". Solution: add_shortcode( 'ts_format_number', 'ts_format_number_func'); function ts_format_number_func( $atts, $content ) { $int = (int) do_shortcode($content); return number_format($int, 2); } Use it like this: [ts_format_number][types field="price"][/types][/ts_format_number] |
2 | 2 | 6 years, 10 months ago | ||
How to output decimal, or thousand separators with Toolset Fields
Started by: davidM-53
in: Toolset Professional Support
Problem: Solution: In the Toolset Number Field, you can pass a decimal number using a dot (.) as decimal separator only. In Single Line Fields you could use any separator you like, but remember that the WordPress query threats every value as the string, unless otherwise specified. This can influence sorting, searching and querying, and when specific characters like a comma (,) or repeating dots are present, it might not return the expected results. the best is to have decimal values separated by a dot only |
3 | 10 | 6 years, 10 months ago | ||
Hide or Remove wpv-post-next-link
Started by: davidM-53
in: Toolset Professional Support
Problem: Can Toolset do this, and can Toolset remove this? Solution: In Toolset, you would create a Post View, and paginate it by one. Relevant Documentation: |
2 | 3 | 6 years, 10 months ago | ||
TablePress integration with Views
1
2
Started by: davidM-53
in: Toolset Professional Support
Problem: I would like to integrate Views and TablePress so that I can filter with Views and show the results in a TablePress table. Solution: There is currently no integration between these two plugins, and they produce incompatible output. We have an improvement in the works that will help integrate Views and Datatables.net tables, but that is not quite ready. It's possible to use a sortable table in Views and apply some style changes to make the clickable headers more friendly: .js-wpv-sort-trigger.js-wpv-column-header-click { display: block; padding-top: 12px; padding-bottom: 12px; } |
2 | 16 | 6 years, 10 months ago | ||
Multi Select Field
Started by: davidM-53 in: Types Community Support |
2 | 2 | 7 years ago | ||
Hide fields that don’t have an value
Started by: davidM-53
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 3 | 7 years ago |