When creating a table there is an option to choose a column --> Data and then choose to get shortcode shown for the calculated AVG, TOTAL, MIN, and MAX.
However, that shortcode comes with a 'tag' or string. For example, it will say "Avg = 10". How do I remove the tag so I ONLY get the calculated number 10?
Every Calculation function (SUM, AVG, MIN and MAX) have their own shortcodes, in the Data tab of column settings. At the moment, they are the only shortcodes we have.
The calculation functions shortcodes are being pulled from ../wp-content/plugins/wpdatatables/controllers/wdt_functions.php, so around line 637 you'll see this:
Dear TMS
When creating a table there is an option to choose a column --> Data and then choose to get shortcode shown for the calculated AVG, TOTAL, MIN, and MAX.
However, that shortcode comes with a 'tag' or string. For example, it will say "Avg = 10". How do I remove the tag so I ONLY get the calculated number 10?
Hope you can help me.
Regards, Kim
Hi Kim
Every Calculation function (SUM, AVG, MIN and MAX) have their own shortcodes, in the Data tab of column settings. At the moment, they are the only shortcodes we have.
The calculation functions shortcodes are being pulled from ../wp-content/plugins/wpdatatables/controllers/wdt_functions.php, so around line 637 you'll see this:
Just remove the code for the symbol, and that's it.
Dear Blazenka.
I can't seem to find the destination for that file. All my wp files are in a MYSQL database.
Can you please elaborate on how to find that specific file?
Regards, Kim
Hi Kim
This file should be located on your computer where you have the wpDataTables instalation.
For me it is on my local disc but you can try using the search option to locate the file
Do let us know if there is anything else we can do to assist.