Support

Account

Home Forums Front-end Issues I can't access Field Group field of Type Checkbox with endpoint route (postman)

Unread

I can't access Field Group field of Type Checkbox with endpoint route (postman)

  • Hello,

    I’m trying to access a Field Group field of Type Checkbox so I can get all of the Choices, not a specific id that only has one or a few Choices. For example:

    I am trying to access Label: Home Category of Type Checkbox that has these as choices:

    -Mansion
    -Rental
    -Condo
    -Townhouse
    -Tiny Home
    -Trailer

    I am using a custom post type from Custom Post Type UI. It’s associated with Homes post type. I don’t want to access an instance/single epost from acf that might have Mansion and/or Condo selected, I want to access all of the choices, whether checked or unchecked, so I can input them into an array on the frontend. And I’m trying to do that from an endpoint and route perspective, hence why I’m using postman.

    I have tried using this documentation: https://www.advancedcustomfields.com/resources/rest-api/

    and I have tried looking at a schema from options at:
    https://mywebsite.com/wp-json/wp/v2/homes
    and /homes/id
    but all I get are my specific instances of a few dozen posts under Homes. I’ve tried Show in REST API option in the Group Field, but I don’t see any new options.

    Are there any suggestions or places to look?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.