• 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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you talking about an HTML table or a database table? I’m a bit confused by your question.

    Thread Starter actressupdates

    (@actressupdates)

    I am talking about database tables..

    Thread Starter actressupdates

    (@actressupdates)

    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.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter actressupdates

    (@actressupdates)

    Thank You so much for the fast response.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome!

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where the tables are stored?’ is closed to new replies.