Download the PHP package eduardo-marcolino/acf-fields-in-custom-table without Composer
On this page you can find all versions of the php package eduardo-marcolino/acf-fields-in-custom-table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eduardo-marcolino/acf-fields-in-custom-table
More information about eduardo-marcolino/acf-fields-in-custom-table
Files in eduardo-marcolino/acf-fields-in-custom-table
Package acf-fields-in-custom-table
Short Description ACF: Fields in Custom Table
License GPL-2.0+
Homepage https://github.com/eduardo-marcolino/acf-fields-in-custom-table
Informations about the package acf-fields-in-custom-table
ACF: Fields in Custom Table
This ACF plugin makes it possible to store ACF data in structured database tables instead of WordPress core meta tables.
It uses ACF's acf/update_field_group
hook to create/update the database and then uses acf/save_post
hook to store the data.
It was heavily inspired by Austin Ginder's post https://anchor.host/acf-custom-fields-stored-in-custom-table/.
Supported Fields
- Text
- Text Area
- Number
- Range
- URL
- Password
- Image
- File
- Wysiwyg Editor
- oEmbed
- Select
- Checkbox
- Radio Button
- Button Group
- True / False
- Date Picker
- Date Time Picker
- Time Picker
- Color Picker
- Link
- Post Object
- Page Link
- Relationship
- Taxonomy
- User
Relational Fields
This plugin supports the following relational field types: Post Object, Page Link, Relationship, Taxonomy and User.
It can store both single and multiple values based on the multiple
option.
- If it's a single value field, then the column type will be
bigint(20) unsigned
- If it's a multiple value field, then the column type will be longtext and the date will be stored in json format.
You can query relational fields with multiple values using using MySQL's function JSON_CONTAINS. Here is an example:
Table:
Query:
The query above will return "Lord of the Flies" and "The Island"
Filters
The plugin provides filters to allow developers to customize the plugin behavior:
Chaging table prefix
Disabling WP Post Meta storage
By default the data is still stored in WP Post Meta but you can disable it using acf filter acf/pre_update_value
as such:
ACF Compatibility
This plugin was tested with ACF 5 FREE Version .