I’m publishing new posts on my WP site via WordPress’ REST API. All fields get properly populated, including ACF custom fields, but the reference field is not created in wp_postmeta, which means those fields do not show up in the front-end.
Here is the DB entry after auto-publish a post via API:
It’s not until I manually go into each post and hit the ‘Update’ button that the reference field is created in the DB table.
Any idea why A) the reference field is not created when publishing a post via REST API and B) how to fix this issue?
I would really appreciate some help/direction!
I “solved” it for now by directly querying the custom fields via WP’s built-in get_post_custom() function. Not 100% ideal, but it does work.