Skip to content

All wordpress media items is not showing in graphql-ide #2240

Answered by jasonbahl
sanky72 asked this question in Q&A
Discussion options

You must be logged in to vote

@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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sanky72
Comment options

Answer selected by jasonbahl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants