Giter Site home page Giter Site logo

adammendoza / acf-to-wp-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from times/acf-to-wp-api

0.0 1.0 0.0 656 KB

Puts all ACF fields from posts, pages, custom post types, attachments and taxonomy terms, into the WP-API output under the 'acf' key

Home Page: http://wordpress.org/plugins/acf-to-wp-api/

License: MIT License

PHP 100.00%

acf-to-wp-api's Introduction

ACF to WP-API

Join the chat at https://gitter.im/times/acf-to-wp-api

Contributors: chrishutchinson, kokarn, ramvi
Tags: acf, api, wp-api
Requires at least: 3.9.0 Tested up to: 4.4.1 Stable tag: 1.3.3 License: MIT
License URI: http://opensource.org/licenses/MIT

Plugs Advanced Custom Fields (ACF) data into the WordPress JSON API (WP-API).

Description

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).

Installation

  1. Unzip and upload the acf-to-wp-api directory to /wp-content/plugins/.
  2. Activate the plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

How can I log and issue or contribute code?

See the CONTRIBUTING.md file.

How can I filter posts on a custom field?

See issue #13 for example code to do this.

Options Endpoints

/wp-json/wp/v2/acf/options

Request a list of all options configured in ACF

/wp-json/wp/v2/acf/options/{option-name}

Request a specific option, by passing in the option name

Changelog

1.3.3

  • Compatibility fix for V2.0Beta9

1.3.2

  • Adds support for custom post types when using v2 of the REST API

1.3.1

  • Fix to support PHP < 5.4

1.3.0

  • 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

1.2.1

  • Tested with WordPress 4.2.1

1.2.0

  • Added ACF data to comments (Thanks @ramvi).

1.1.0

  • Add /option endpoint for ACF options add-on (Thanks @kokarn).

1.0.1

  • Fix for addACFDataTerm.

1.0.0

  • Initial release.

acf-to-wp-api's People

Contributors

chrishutchinson avatar gitter-badger avatar kokarn avatar ramvi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.