gatsby-source-wordpress is not getting all CustomPostType's posts from WordPress
See original GitHub issueDescription
I’m using gatsby-source-wordpress in version 4.0.1. In my WordPress I’m using CustomPostTypes along with AdvancedCustomFields. I created CPT called MapPlace with ACF inside including Google Maps marker. I imported exactly 301 MapPlaces using WP All Import Pro. Because of the Google Maps marker inside, I had to add custom importing script which gets my place’s address and place pin on Google Maps field. Each post is being imported correctly. The problem occures when I’m fetching MapPlaces to my Gatsby project. As I said, I have exactly 301 published MapPlaces in my WordPress (pic rel). During the build gatsby-source-wordpress’ logs shows me that fetched 294 MapPlaces, and in my GraphiQL I see 286 real ones.
Steps to reproduce
- have big number (e.g. 301 as in my case) of CustomPostType’s posts with GoogleMaps pin field
- try to query in Gatsby’s GraphiQL all these posts belonging to this particular CPT
Expected result
You get all these posts.
Actual result
You get less posts than it’s actually published
Environment
WordPress: wp-graphql version :
Gatsby:
"gatsby-source-wordpress": "4.0.1"
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
@TylerBarnes We found where the problem was located! Post Types Order plugin was making mess in posts’ amount comming to Gatsby. If we turned this plugin off, we got all posts straight to Gatsby 😃 I write this here, cause someone could have similiar issue. Again, thanks for help anyway!
Glad to hear you found it 😄