Viewing 6 replies - 1 through 6 (of 6 total)
  • Not sure if it’s the best solution, but I’ve made a fork to support CPT’s right here:
    https://github.com/aderaaij/acf-to-wp-api

    See the github issue and explanation right here:
    https://github.com/times/acf-to-wp-api/issues/21

    Plugin Author Chris Hutchinson

    (@chrishutchinson)

    Hey @jrgodoi, this should have been resolved in v1.3.2 of the plugin. I’ll resolve this for now, but comment again if it’s still an issue for you and I’ll reopen the issue!

    Hi Chris,

    I am having the same issue still. I have the latest version of the plugin 1.3.2 but when displaying the custom post type rest api, adf says false:

    “acf”:false

    Do I need to do anything in particular to make it work?

    Thank you!
    Jeff

    Sorry Chris, my bad. It is working correctly now. Thanks for the great plugin!!

    JCLondon, can you share how you fixed your issue? I’m also unable to get my ACF fields returned on my custom post type, although my API response is slightly different:

    "acf": {
         "answer": ""
    },

    I’m using version 1.2.4 of the REST API.

    Hi Adam,

    I didn’t really do anything to my code. I was just looking at the wrong line of code..!

    It looks like your ACF fields are showing up fine in the json feed, it’s just the content not showing up. I know it’s a silly question, but is the content actually there?

    Hope you’ll find a solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not working with CPT’ is closed to new replies.