Tag: wordpress
-
WordPress Gatsby get parent props
0 I’m a grapql newby and struggling to get the parent props from current page. In gatsby-node.js I create all wordpress pages with: createPage({ path: `${page.node.uri}`, component: PageTemplate, context: { id: page.node.id, title: page.node.title, parentId: page.node.parentId }, }) Then on the page I use following to get data from current page with: query($id: String!) {…
-
Error: Unable to find GraphQL endpoint. While trying to generate post type object
0 Im trying to setup a headless WP project using faustjs, WPgraphQL and ACF. Later im planning to also implement Shopify shopfront API. I was setting up the project, installing all the plugins and setting them up. So i have setup my .env.local and i have setup the faust settings in the WP admin panel.…
-
Headless WordPress GraphQL endpoint results in 404 URL not found with XAMPP
1 I am trying to consume a GraphQL endpoint (autogenerated from a headless WordPress project) which is served over XAMPP Apache localhost server, but when I hit the endpoint with suggested from the GraphQL settings in WordPress (https://localhost/does-pizza/graphql) I get back a 404 URL not found. Some details that could be useful to anybody trying…