Formula Sum with filter | WordPress.org

[ad_1]

Hi,

thanks for the link and the explanation!

That will not be possible with using a formula like that in the table, I’m afraid, as the formula is evaluated on the server (before the rendered table is sent to the browser), whereas the filtering dropdowns only work with JavaScript on the client side (in the browser).

You would therefore need to use a JavaScript approach here. One idea could be to use the footerCallback feature of the DataTables JS library in some custom code (which could be inserted into the “Custom Commands” text field on the table’s “Edit” screen. These links could be a good starting point for such code: https://datatables.net/reference/option/footerCallback and https://datatables.net/examples/advanced_init/footer_callback

Regards,
Tobias

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer