Support

Account

Home Forums General Issues ACF = [] in wp rest api

Solved

ACF = [] in wp rest api

  • Hi, I’ve been trying to implement custom fields for my website. I am using frontity on the front-end, so I am just using my wp website to expose everything via the API (REST API).

    When I add new custom field, they are visible in the post editor, I can save / edit the field.

    However, they are not visible in the /wp-json (api) which gives me a problem because I cannot load them on frontend.

    Any suggestions?

  • When inserting new values to a post that does not already have values in a field, for example when inserting a new post, then you must use the field key when updating the field.

    https://www.advancedcustomfields.com/resources/update_field/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.