WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
Where the tables are stored? (7 posts)

  1. actressupdates
    Member
    Posted 3 years ago #

    Hi,

    I wish to insert a table to a post automatically when the post is published. So I want to create table automatically when a post is created. Afterwards I will insert the table contents. But I don't find any database tables associated with this plugin. Can you please help me with this issue?

    Thanks in advance

  2. Christopher Spires
    Member
    Posted 3 years ago #

    Are you talking about an HTML table or a database table? I'm a bit confused by your question.

  3. actressupdates
    Member
    Posted 3 years ago #

    I am talking about database tables..

  4. actressupdates
    Member
    Posted 3 years ago #

    I want the process of table creation to be automatic. For each post there will be a wp-table associated with it.
    If the tables were stored in a database, then I could have inserted a new table by the sql INSERT command. But in this case, as the data is not stored in mysql database, I am unaware how to insert a table automatically.

  5. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    the table data is stored in the database. The plugin does however not use its own mySQL table, but it uses the existing WordPress Options API. With that method, the table data is stored as a serialized string, in entries that begin like "wp_table_reloaded_data_" in the "wp_options" table in the database.
    This has the advantage that no direct SQL queries are necessary.
    For details on how this works, I suggest that you take a look at the "save_table()" function in the plugin's source code.

    Best wishes,
    Tobias

  6. actressupdates
    Member
    Posted 3 years ago #

    Thank You so much for the fast response.

  7. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    no problem, you are very welcome!

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic