nateW
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 |
---|---|---|---|---|---|
Removing Comma and Text Following
Started by: nateW in: Toolset Professional Support |
|
2 | 5 | 2 years, 9 months ago | |
Number Field Comma – Error when using custom shortcode
Started by: nateW in: Toolset Professional Support |
|
2 | 3 | 2 years, 9 months ago | |
Custom shortcode to remove text after a comma
Started by: nateW in: Toolset Professional Support |
|
2 | 3 | 3 years, 1 month ago | |
Inserting a Dynamic URL into an iframe code
Started by: nateW in: Toolset Professional Support |
|
2 | 4 | 3 years, 2 months ago | |
Blank number field is outputting a 0
Started by: nateW
in: Toolset Professional Support
Problem: The code to add commas to the numbers to separate the thousands shows 0 when the result of the custom field is empty. Solution: Change the code to this: add_shortcode( 'ts_format_number', 'ts_format_number_func'); function ts_format_number_func( $atts, $content ) { $int = (int) do_shortcode($content); if ($int == null) { return ""; } else { return number_format($int, 0); } } |
|
2 | 3 | 3 years, 2 months ago |