• Resolved noxos


    congratulations on your very well developed and very useful plugin.

    My request concerns the Single Cell Content Shortcode extension, it works very well but how can I call the last cell of a column of a table constantly updated with new data added ?

    The shortcode is [table-cell id=123 row=3 column=3 /] it works very well, but is there a solution for this: [table-cell id=123 row=the last cell column=3 / ] ?

    Because by adding lines the number of the last changes and I am looking for how to always display the last line with a shortcode.

    Thank you for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg



    Thanks for your post and sorry for the trouble!

    While this is not directly possible with the Single Cell Shortcode Extension, this is in principle possible by using a custom wrapper Shortcode that also uses the [table-info] Shortcode that comes with TablePress. This also allows retrieving the number of rows and columns in a table, and this result can then be used as input for the [table-cell] Shortcode.


    Thread Starter noxos


    Hi Tobias,

    thanks for your reply, I’ll see if I can find a solution like that, thanks.

    If I understand correctly first step, identify the number of rows in a table, and then use the data to call the cell, with a shotcode.

    That’s right ?

    [table-info id=475 field=?? /]

    What should I put to get details like the number of lines ? Thank you for your help. Sorry for my confusion.

    Plugin Author TobiasBg



    please use number_rows for the value of the field parameter. You could also add the parameter format=raw to get the number without counting the header or footer row (but you could of course also do that calculation afterwards).

    Best wishes,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.