• Resolved webmotivated

    (@webmotivated)


    Hi

    I’ve made some use of row filter extension. It returns a table with a single row. I now would like to retrieve a value of a single cell from that single row within this pre-filtered table.

    Question: Is it possible to retrieve a value of single cell from the table produced by TablePress row filter extension? Note: this table only planned to have a single row. (Option 1)

    Note: As option 2, I’m also exploring the possibility of using Single Cell Content Shortcode, however it requires a row number which is dynamic in my situation. I’m open to both options. None of them look very elegant to me, probably because I’m new to tables/dynamic data handling in wordpress, but happy if only works since I’m dealing with small amounts of data (under 1000 rows) here.

    Please advise re how to retrieve a value of a single cell from a pre-filtered table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I see what you mean, but unfortunately, I can’t really offer a good solution here. TablePress simply is not designed to be a full database system, where you can query data easily.

    The best that I can think of here would be to make the Row Filter Extension return that one row, and combine that with Shortcode parameters to hide all undesired columns, e.g.

    [table id=123 filter="test" hide_columns=all show_columns=3 /]
    

    This would basically give you a 1×1 table, with just the desired cell. This is a bit ugly, because it’s additional HTML code, but you could then maybe use a filter hook like tablepress_table_output to extract just the cell content.

    Regards,
    Tobias

    Thread Starter webmotivated

    (@webmotivated)

    ok Thx Tobias.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    sure, no problem!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Retrieve cell value from row filter result’ is closed to new replies.