menu

WPGraphQL

Free Open Source WordPress plugin that adds an extendable GraphQL Schema and API to your WordPress site

Channels
Team
Posts
Members
Info
down-caret

Query custom post type children based on taxonomy?

I've got a custom post type that has children posts and I'm trying to filter the children based on taxonomy, but I'm not quite getting the results I'm looking for. In the below example I'm trying to filter the children of Gold Canyon based on if they're in the Homes for Sale…

thumbsup
0
message-simple
0

Which query is best for using a posts' slug as the url with vue?

I noticed postby is deprecated and there is "post(id: $slug, idType: SLUG)" and "posts(where: { name: $slug })"

thumbsup
0
message-simple
0

How do we handle page template specific ACF?

I have an ACF set to only appear on page template 'homePage', however I cant query any of these fields within graphql as i get an error saying 'templateHome' does not exist on type Page. Is there a way to query for pages of a specific template type?

thumbsup
0
message-simple
0

Can't access graphql

I face the following error. {"errors":[{"message":"GraphQL Request must include at least one of those two parameters: \"query\" or \"queryId\"","extensions":{"category":"request"}}]}

thumbsup
0
message-simple
4

How to register product attribute fields?

I managed to register product data generated by a plugin in GraphQL but I'm stuck doing the same for product attributes (sorry, I'm a PHP and WordPress backend novice). I'm using a plugin that allows me to add images to product attributes and I'd like to register the image URL…

thumbsup
0
message-simple
1

Make search match full words

I am experiencing situations where, if I would like to search posts for the name "Marc" I will get results that included "March". Which returns a fairly large set of unsemantic results. I wonder if there is a way to adjust this search and only make it match full words?

thumbsup
0
message-simple
0

Can't add comment

Hi everybody, How can I create comment on a post? this doc is incomplete: …

thumbsup
0
message-simple
2

create and update acf with graphql wordpress

hello everyone, what php function do I need to create and update acf fields in wordpress with graphql

thumbsup
0
message-simple
17

Restrict API Access

Would it be possible to restrict the fields that we get from the endpoint? Let's say I am going to use the Wordpress site as a content manager and I only want to fetch mediaItems. How can I prevent the plugin to show the rest of the queries and mutations?

thumbsup
0
message-simple
2

How to Handle Send Password Reset Email In Graphql

Hey Me success Full create a reset Custome page in graphql use sendPasswordResetEmail query. But My problem is how to handle Email Link In graphql. Plz, Tell How to change Link In My Email.

thumbsup
0
message-simple
2