Using Tablepress with ACF in page templates
-
Hello.
I’m trying to use TablePress in conjunction with the Advanced Custom Fields plugin. ACF has the ability to add a select dropdown to the post edit page where you can select a Page/Post/any custom post type and it will save a post object in the database for that custom field, allowing access to that post’s id, content and post meta when writing out a template.
TablePress tables are a custom post type, so I have set up a Custom Field where you can select a TablePress Table post object when editing a post in wordpress.
However, tablepress’s functions always take a table id (not a post id) to pull the table’s content onto a page whether you are using shortcodes or template tags.My question is how can I get the table id of a tablepress table if I only have the post id?
I can’t quite seem to find how the table id is connected to the post content through searching my database.
- The topic ‘Using Tablepress with ACF in page templates’ is closed to new replies.