Okay
  Public Ticket #1786126
Results from Calculated Column
Closed

Comments

  • Ken Hagen started the conversation

    When placing a calculated column on a page the short code is returning text in front of the value (i.e. "Avg = ").  Can this be removed?  By definition of these short codes we already now what it is and should just have the number to format as needed.  

    Thanks.

  •  472
    Isidora replied

    Hi Ken,
    Thank you for your purchase.

    Sorry for late response. 

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    Yes you can, but you need to modify some files in core of plugin. In file 

    wp-content/plugins/wpdatatables/controllers/wdt_functions.phpa reound line 505 you will find this

    $attributes['label'] = get_option('wdtAvgFunctionsLabel') ? get_option('wdtAvgFunctionsLabel') : 'Avg =';

    and there you can remove that string 'Avg =' and then your code will look like this:

    $attributes['label'] = get_option('wdtAvgFunctionsLabel') ? get_option('wdtAvgFunctionsLabel') : '';

    Please note that this will be overwritten in next update so you will have to do it again.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables