Hi,
thanks for your post, and sorry for the trouble.
Are you already using TablePress 2.0? In that, I changed the loading mechanism, so that the template tag function tablepress_get_table_info() is also available in the admin area.
It will however only be available when the tablepress_loaded action runs, which will be at some point when the init hook runs.
The table ID to post ID relationship is stored in the tablepress_tables option in the wp_options database table. However, I really don’t recommend doing all this with custom code.
Instead, let’s try to make tablepress_get_table_info() work here. Can you maybe check when you are trying to call it? Are you only doing this after the init hook, and are you using TablePress 2.0?
Regards,
Tobias
Thanks for replying so quickly! I noticed that I used an old version of TablePress. Updating solved the issue!
Hi,
great! Good to hear that it’s working now!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
