DEV Community

Discussion on: Gatsby with WPGraphQL, ACF and Gatbsy-Image

Collapse
 
byronwade profile image
Byron Wade • Edited

I'm not exactly sure why but I did everything to the tee but my gatsby-nodes.js file loops over creating pages multiple times. I narrowed it down to the script you made. I'm a bit confused about it though.

Collapse
 
zanami profile image
zanami • Edited

Same here. I'm actually using this caching method.
gasby develop runs the same create post/download image tasks 4 or 5 times

gasby build runs only once (i.e. works ok)

Caching doesn't seem to work either, gatsby still downloads images but maybe not featuredImage ones as I'm also using gatsby-wpgraphql-inline-images

Collapse
 
henrikwirth profile image
Henrik Wirth

What versions are you using? I haven't tested it with the newest versions of all the plugins and Gatsby. So maybe something changed? Also the node Version could be interesting. If you have a reproduction on Github, that would help a lot.

I don't have so much time on my hands at the moment for the next two months. But I'll try to help as much as I can.

Thread Thread
 
zanami profile image
zanami

I forgot to mention I'm using this rather outdated demo from gatsby-wpgraphql-inline-images author (I believe). It's based on the official wpgraphql demo which is also outdated, as is their demo.wpgraphql.com, probably due to older wpgraphql plugin

I'm going to start over with your code @ part 6 as I don't need ACF stuff.
Looks good so far, apart from dealing with nonexistent isFrontPage field.

Thanks for your great work!

Thread Thread
 
henrikwirth profile image
Henrik Wirth

isFrontPage should be available in the newer versions of WPGraphQL. Make sure in WordPress, that there is a page actually set to be the front page.

wordpress.org/support/article/crea...