1
Custom database tables for Custom Post Types and ACF Meta

Please add support for custom database tables. Most existing solutions I have found so far focus on just ACF meta data only. But the same logic should in theory work with wp_posts as well. So when you make a new custom post type, you could opt in to have the posts stored in a separate db table, and/or the meta data stored in a separate db table. For smaller projects this is mostly nonsense as you have sufficient resources, space and functionality in the core wp functionality. But lets say you want to scale out and make a larger project or a prototype/MVP. Maybe you want to connect your data to some other sources and need frequent queries to the database, outside of the scope of wp. Or maybe you want to quickly build a working prototype in WP and then build something more complex using the same database structure. As for now there are some limits with WP in terms of scalability and complexity. It would be interesting to push these borders, so wp could dig in to the edges of segments of other frameworks such as laravel and similar. I think there is some potential here in the medium complexity area.

Some links:

https://wordpress.org/plugins/acf-fields-in-custom-table/

https://hookturn.io/downloads/acf-custom-database-tables/

https://anchor.host/acf-custom-fields-stored-in-custom-table/

https://github.com/eduardo-marcolino/acf-fields-in-custom-table

https://metabox.io/plugins/mb-custom-table/

https://codex.wordpress.org/Creating_Tables_with_Plugins

Join the conversion, Login to Reply


Upvoters
1
Feature Details

Status: In Review

Board: Divi Machine

Created: 18 July 2024

Last Updated: 18 July 2024

Posted By: mathias

© 2024 Divi Engine