Contributors: chrishutchinson, kokarn, ramvi
Tags: acf, api, wp-api
Requires at least: 3.9.0
Tested up to: 4.3.0
Stable tag: 1.3.0
License: MIT
License URI: http://opensource.org/licenses/MIT
Plugs Advanced Custom Fields (ACF) data into the WordPress JSON API (WP-API).
Puts all ACF fields from posts, pages, custom post types, comments, attachments and taxonomy terms, into the WP-API output under the 'acf' key. Creates a new /option
endpoint returning options (requires ACF Options Page plugin).
- Unzip and upload the
acf-to-wp-api
directory to/wp-content/plugins/
. - Activate the plugin through the 'Plugins' menu in WordPress
See the CONTRIBUTING.md
file.
See issue #13 for example code to do this.
Request a list of all options configured in ACF
Request a specific option, by passing in the option name
- Add support for v2 of WP-API
- Restructure of much of the code, adding documentation throughout
- Add an additional endpoint for requesting single option values
- Tested with WordPress 4.3.0
- Tested with WordPress 4.2.1
- Added ACF data to comments (Thanks @ramvi).
- Add
/option
endpoint for ACF options add-on (Thanks @kokarn).
- Fix for addACFDataTerm.
- Initial release.