Wordpress ACF importer
Wordpress ACF (Advanced Custom Fields) importer. Allows programmatical import of XML files containing ACF fields into Wordpress, previously exported by the plugin itself.
by Maciej Gurban · github.com/maciej-gurban/wp_acf_importer · website
★ 5stars
2forks
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/maciej-gurban/wp_acf_importer/archive/refs/heads/master.zipDeclares an update source (https://github.com/maciej-gurban/acf_create_field), so updates arrive through the plugin's own updater.
From the readme
WP ACF Importer
The plugin allows programmatical import of XML files containing ACF (Advanced Custom Fields) into Wordpress. It expects one ACF field (post of 'acf' type) at a time. XML syntax expected by the plugin needs to be the output of ACF plugin's export function.
The plugin supports Wordpress Multisite Network and auto updates if [GitHub Updater][1] plugin is installed.
[1]: https://github.com/afragen/github-updater
Installation
Uploading in WordPress Dashboard
1. Navigate to the 'Add New' in the plugins dashboard
2. Navigate to the 'Upload' area
3. Select wpacfimporter.zip from your computer
4. Click 'Install Now'
5. Activate the plugin in the Plugin dashboard
Using FTP
1. Download wpacfimporter.zip
2. Extract the wpacfimporter directory to your computer
3. Upload the wpacfimporter directory to the /wp-content/plugins/ directory
4. Activate the plugin in the Plugin dashboard
Plugin usage
Plugin expects $xmlstring parameter to be passed. It should contain the contents of the XML file that is produced by ACF plugin upon export of an ACF field. The plugin will try to create one new ACF post unless one already exists, and then populate it with fields. To insert more