• Hey, the ACF to REST API works normal, but the data it resend is empty.
    This problem happens to all of our blog site based on wordpress.com

    Could help find the real reason behind this problem?

    • This topic was modified 2 years, 9 months ago by starry1989.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I can not answer on all circumstances.

    But the error for us, when going from 5.11.4 to 5.12 – is similar to yours.

    You have to go in your Field Groups, and enable the WP API again.

    BUT BUT BUT:
    This might solve it for many – but other problems appear:

    ACF fields in the wp rest api json presentation values is not STRING-ONLY as before. “123” becomes 123 – if you have the acf field typ of Number etc.

    And ACF Images, here the returned value will be the attachment ID – regardless if you have choosed return object or image path.

    / hejamartin

    • This reply was modified 2 years, 8 months ago by hejamartin.

    I have posted a fix for 5.12 on Github and also submitted a PR – https://github.com/airesvsg/acf-to-rest-api/issues/398.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ACF to REST API data loss’ is closed to new replies.