• Resolved johncoppedge

    (@johncoppedge)


    Excellent plugin!

    Just wondering – is there a way to show the total number of rows of a table (including hidden rows)? Checked the documentation and did not see an option, just wanted to make sure I wasn’t missing something.

    Essentially want to show a preview of the table (with some rows) hidden and then show “There are X number of rows total”.

    Thanks for the excellent plugin!!

    http://wordpress.org/extend/plugins/tablepress/

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

    (@tobiasbg)

    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

    Thread Starter johncoppedge

    (@johncoppedge)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Thread Starter johncoppedge

    (@johncoppedge)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table info total number of rows?’ is closed to new replies.