WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Internal Assending Sequence Number (4 posts)

  1. JGravesNBS
    Member
    Posted 11 months ago #

    Questions:

    Do I understand there is an internal assending sequence number that is assinged to each table row item when importing and while manupalting the rows in TablePress, Admin, Table Content?

    And this is how the table gets back into its original sequence if the user viewing the site sorts a field and refreshes the screen the table row items redisplay into their original sequence?

    What tables do you create and use in the SQL database?

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    thanks for your question!

    I'm not really sure that I understand...
    No, there's no "internal ascending sequence number" here. The reason for this behavior simply is that TablePress saves the entire table, and whenever the page is loaded, it shows that table - in the same order that it is saved in while on the "Edit" screen.
    The sorting that a user performs is only done in the client, thus it does not alter/change the saved table data at all.

    TablePress does not create any tables in the mySQL database. Instead, it uses WordPress' "Custom Post Type" API, which saves the tables as JSON encoded string in the wp_posts table, with the post_type of tablepress_table.

    Regards,
    Tobias

  3. JGravesNBS
    Member
    Posted 11 months ago #

    Thanks for the explaination

  4. TobiasBg
    Member
    Plugin Author

    Posted 11 months ago #

    Hi,

    no problem, you are very welcome! :-) Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic