Okay
  Public Ticket #2805457
removing AVG, TOTAL, MIN and MAX tag/string
Closed

Comments

  • ILIT started the conversation

    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

  • [deleted] replied

    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:

    $attributes['label'] = get_option('wdtSumFunctionsLabel') ? get_option('wdtSumFunctionsLabel') : '& #8721; =';
    

    Just remove the code for the symbol, and that's it.


  • ILIT replied

    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

  • [deleted] replied

    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

    4223957731.png

    Do let us know if there is anything else we can do to assist.