-
Hi,
but I can see that in wordpress's wp-graphql's ide - I am getting all the image when I run this query
Please if there's any information which I am missing. cc @jasonbahl |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@sanky72 are the images in the media library used within content of pages/posts/custom post types? Gatsby tries to only load media that is used in the site content instead of loading the entire Media Library. Many sites on WordPress have a lot of images uploaded that they never use on the site, and it would be a lot of extra downloading if Gatsby downloaded every possible image. I believe there are options in the Gatsby Source WordPress plugin to change this behavior: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#typemediaitem |
Beta Was this translation helpful? Give feedback.
@sanky72 are the images in the media library used within content of pages/posts/custom post types?
Gatsby tries to only load media that is used in the site content instead of loading the entire Media Library. Many sites on WordPress have a lot of images uploaded that they never use on the site, and it would be a lot of extra downloading if Gatsby downloaded every possible image.
I believe there are options in the Gatsby Source WordPress plugin to change this behavior: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#typemediaitem