Tag: wordpress
-
Unable to connect to WPGraphQL
0 I am new to building with Gatsby and wordpress. when i run "gatsby develop", i get this error on my command line "Unable to connect to WPGraphQL, Either WPGraphQL is not active or there are some WordPress PHP filters in your site which are adding additional output to the GraphQL response. These may have…
-
Gatsby GraphQL Error: Cannot query field “dogs” on type “Query”
0 I created a custom post type in WordPress and would like to build pages for it. When I try out the queries in the IDE they pull the custom post data ok. When I add it to the code, however, it throws the error Cannot query field "dogs" on type "Query" when I build…
-
Posting Image to wordpress through Apollo client and GraphQL
0 I’m currently facing a challenge with React Native related to file uploads. I’m working with a WordPress backend that uses GraphQL, and for file uploading, I’m relying on the wp-graphql-upload plugin available on GitHub. This plugin requires the submission of actual file objects, but React Native inherently doesn’t support direct file submissions – it…
-
WordPress gatsby graphql need sorting on children
0 On the following graphql I need sorting/order on the WPChildren with the ‘menuOrder’ item… query ($id: String!) { allWpPage( filter: {id: {eq: $id}} ) { edges { node { id title uri content children { id } blocks } } nodes { wpChildren { nodes { id … on WpPage { id title uri…
-
TailwindCSS Styles not rendering when styles are stored in a variable string
0 I am using WordPress, ReactJS, WpGraphQL and Advanced Custom Fields. I am storing the TailwindCSS styles in a text string within ACF and I am getting that string returned in react via GraphQL. The problem is that the variable is not rendering the CSS styles in the string correctly. Posting my code will not…
-
Get all the related posts except the current post using WPGraphQl in reactjs
2 I’m trying to grab the related posts except the current post using WPGraphQL. My thought is to exclude the ID of the current post and display all related blog posts within the category. I’m new to GraphQL, I don’t know how to figure out to solve it. is this possible in GraphQL? Please help…
-
Gatsby filter with wordpress wpml langauge not working
0 I have a wordpress headless setup to work with gatsby static site genetator. The data is coming correclty when queried from wordpress console. { categories (where : {language: "fr"}){ nodes { id, databaseId, name, uri } } } Same data is not coming when queried from gatsby graphql query: { allWpCategory (filter : {language…