• Hi!
    I’m trying to retrieve entries from Relationship field but I receive empty string (e.g, "acm_fields":{"relationship":""}).
    Am I doing something wrong?
    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Thanks for the request, @nazartikhonyuk.

    Relationship fields are not yet supported in REST responses. I’m sorry not to have better news for you there. The reason is that relationship data is stored in a custom table (not post meta), so we have some extra work yet to do to support it for REST.

    If you’re willing to install WPGraphQL and make GraphQL queries instead of REST requests, ACM relationship field data is supported via GraphQL. This also lets you get data about the related posts in the same response without having to make a separate request.

    If you’re only interested in fetching relationship data via REST, I opened a feature request here in case you want to up-vote it or track if it’s added:

    https://github.com/wpengine/atlas-content-modeler/discussions/605

Viewing 1 replies (of 1 total)

The topic ‘Relationship field’ is closed to new replies.