WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Formula result outside table

[Resolved] Formula result outside table

  • Hi Tobias,
    Thank you very much for great plugin! I went through many topics in this forum with no result regarding this:
    I try to display result from simple formula (SUM) cell outside Tablepress table in a post/page (using e.g. [table-cell id=5 cell=B9 /]) but it always displays nothing but formula itself (e.g. =SUM(B2:B8)).
    Is there a way (can be php) to display output from this formula in a post/page or page template?
    Thanks,
    Radek

    https://wordpress.org/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    @tobiasbg

    Hi,

    thanks for your post, and sorry for the trouble.

    That’s a tricky problem… The Single Cell Shortcode Extension only grabs the raw table data, without evaluating the formulas in it.
    Your best change might therefore be to extend the Single Cell Shortcode by loading the TablePress_Render class. Then, you would have to hook into the tablepress_table_evaluate_data filter and retrieve the evaluated table data, which you can then use as the source for getting a single cell value.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Formula result outside table’ is closed to new replies.