ACF to Custom Database Tables Compatibility
Improve your filter performance in Divi Ajax Filter by enabling compatibility with the ACF to Custom Database Tables plugin. This integration allows your ACF field data to be stored in separate, optimized database tables, significantly speeding up filtering on sites with large datasets.
Plugin Requirement
To use this feature, install the free ACF to Custom Database Tables plugin.
Once installed and activated, a new
Custom Tables
menu item will appear under the ACF menu in your WordPress admin.
How to Enable Compatibility
Step 1: Create a Custom Table for Your ACF Field Group
- Go to
Field Groups
in your WordPress admin underACF
and edit an existing field group or create a new one. - Scroll to the bottom of the field group page.
- Toggle on the
ACF to custom database tables
setting. - Enter a custom table name using underscores to separate words (e.g.,
my_example_database
). - Save the field group.
Step 2: Generate the Table
After saving:
- Click the "Manage database tables" link at the top of the field group, or
- Go to
ACF
>Custom Tables
in the admin sidebar.
- Locate your new table in the list.
- Click Create Table under the Action column.
- Review the SQL query and click Create Table to confirm.
Step 3: Configure Divi Ajax Filter to Use the Custom Table
- Open the page or template containing your
Filter Posts
module. - Edit or add a Filter Post Module.
- For the filter item:
- Set the Filter Type to
Advanced Custom Field
. - Select the appropriate Post Type and ACF Field Name.
- Set the Filter Type to
- Toggle on Enable ACF Custom Table Query.
- Select the corresponding:
- Database Table Name (e.g.,
my_example_database
) - Column (the field in the custom table you want to filter)
- Database Table Name (e.g.,
Expected Results
With this configuration enabled, Divi Ajax Filter will bypass the default WordPress meta queries and directly target your optimized custom table. This results in faster filter response times, especially on large datasets.
Limitations
This compatibility is not currently supported in Divi Machine or Divi BodyCommerce. Future updates may include support.