[ad_1]
Hey, I have a question. I am using WordPress as a headless CMS and fetch the data through GraphQL. Now I want to create a download section for my client.
I set up a new custom post type (“downloads”) which contains a title a multiple file upload field. There you can upload one or multiple pdf. So far so good.
When I try to fetch the data, I get the correct title of the post and I can see the file node. But every field returns “undefined”, so I can’t fetch the URL and the Name.
Did somebody have the same problem? What am I doing wrong?
[ad_2]