• Resolved Mark Wilkinson

    (@wpmarkuk)


    I want to generate a select input (drop down) of all tables with the values as their IDs. When I first looked at this each table also has a post (saved as a post in the custom post type tablepress_table) however the table is not actually stored with the post.

    Therefore I either need to able to get a list of all tables with their values as the table IDs or how can I get a table ID from its post ID.

    I see that the associated on posts and tables is stored in the options table as tablepress_tables. However when I get that options it just returns a string like so:

    string(36) "{"last_id":2,"table_post":{"1":118}}"

    I would have expected an array. How can I use this to get the table ID from the post ID please. You help is much appreciated.

    https://www.ads-software.com/plugins/tablepress/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Select Input of All Tables’ is closed to new replies.