I'm having issues with posting too wp json api

Hello
I'm trying to post via wp json api , everything works well except that i cant post values into advanced custom fields that i have set up
Kindly help
Ahsan

  • Adam Czajczyk

    Hello Ahsan,

    I hope you're well today and thank you for your question!

    I understand that you're referring to custom fields created with Advanced Custom Fields plugin, is that correct?

    The ACF plugin is known to use it's own standards that are not fully compatible with default WP rules so this may be causing some difficulties. This means that ACF-created custom fields support for JSON API should be provided by ACF and it seems they didn't introduce it. However, this plugin may help:

    https://github.com/airesvsg/acf-to-rest-api

    It creates an additional endpoint that should be then possible to use with standard WP JSON API.

    Please note however that classic JSON API is deprecated and no longer developed and it may be necessary in future to switch to full-featured WP REST API:

    http://v2.wp-api.org/

    I hope that helps!
    Best regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.