1. 10
    Add the Advanced Custom Fields (ACF) Plugin and Expose those Fields to the REST API
    2m 31s

Add the Advanced Custom Fields (ACF) Plugin and Expose those Fields to the REST API

Share this video with your friends

Send Tweet

In this lesson, we will install the Advanced Custom Fields (ACF) plugin and discuss some of the advantages of using this. ACF gives us increased options of what we can do with our different types. For this example, we'll extend the Chair field to include fields for price, material, and weight.

These fields are not automatically exposed to the API. We will need to install the ACF to REST API plugin which will add an acf field to our REST API object for you to access this data on the front end. This keeps the data pure so that you can receive them as props instead of being forced to extract the data from the rendered content.