Advanced Custom Fields: CSV upload
Upload CSV and store as JSON
by gabeherbert · github.com/g000m/acf-field-csv-upload · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/g000m/acf-field-csv-upload/archive/refs/heads/master.zipReadme
ACF JSON Field
CSV upload to JSON for Advanced Custom Fields.
Usage
Basic usage
// Get encoded JSON
$json = get_field('json_field');
// Decode JSON to object
$value = json_decode($json);
// Use the values
echo $value->something;
Pass to javascript variable
Description
CSV upload for Advanced Custom Fields.
Compatibility
This ACF field type is compatible with:
- ACF 5
Installation
- Copy the
acf-field-csv-uploadfolder into yourwp-content/pluginsfolder - Activate the Advanced Custom Fields: CSV plugin via the plugins admin page
- Create a new field via ACF and select the CSV type
- Please refer to the description for more info regarding the field type settings
Changelog
Please see readme.txt for changelog
Credits
This ACF field relies heavily on great package https://github.com/mholt/PapaParse