Hi,
thanks for your question.
Yes, there’s another Shortcode that you can use for this. Please try this in a post or page:
There are [table-info id=123 field="number_rows" /] rows in this table.
Change the table ID in that Shortcode as necessary. If you want to include the header and footer row in the count (if they exist), add another parameter format="raw"
to the Shortcode.
Regards,
Tobias
Hey Tobias,
Thanks for the quick reply. I’m getting the following message: table-info field “number_rows” not found in table “9”. Any ideas?
Cheers,
John
Hi John,
ah, I totally forgot that this feature is not part of TablePress 0.9-RC, but only of the current development version. So, to use it, just download that dev version from http://tablepress.org/download/tablepress-dev.zip and replace the “tablepress” folder on your server with that from the ZIP archive.
After that, the Shortcode will return the number of rows correctly.
Regards,
Tobias
Hey Tobias,
Excellent, thanks for the reply and link. Any idea on ETA for when this will be included in the next stable release?
Cheers,
John
Hi John,
sure, no problem! You are very welcome!
This will be in the next release, which should be out towards the end of March, depending on the progress with other features.
Using that development version, until the next release comes out, is safe though, it’s basically 0.9-RC plus very few changes.
Best wishes,
Tobias