manifest / integrations / acf-fields-to-wp-rest-api
ACF Fields to WP REST API
Programmatically add data from Advanced Custom Fields to the Wordpress REST API
by Lewis Donovan · github.com/lewisdonovan/acf-fields-to-wp-rest-api · website
★ 58stars
728composer installs
10forks
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/lewisdonovan/acf-fields-to-wp-rest-api/archive/refs/heads/master.zipAlso on Packagist as lewisdonovan/acf-fields-to-wp-rest-api:
composer require lewisdonovan/acf-fields-to-wp-rest-apiFrom the readme
ACF Fields to REST API
Programmatically add data from Advanced Custom Fields to the Wordpress REST API
Simply install and activate the plugin. All existing and new ACF fields will be imported into the API.
Any ACF fields added to posts, pages or categories will appear in the API at the usual endpoints (eg: /wp-json/wp/v2/posts).
If you have custom post types or taxonomies and you have exposed them to the API using showinrest = true, any ACF fields will appear at their endpoints. For more info on exposing custom post types and taxonomies to the API read here.
Compatible with ACF v5.6.0
Changelog
v1.0 - 21.06.2017
Initial commit
v1.1 - 26.07.2017
Updates to namespace and function naming