wp-graphql / wp-graphql/wpgraphql-acf
Bug on FlexContent on WPgraphql ACF
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 110
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Description
There is a bug on flexContent while using it in wordpress 6.7.1 php 8.2 and WPGraphQL and WPGraphQL ACF new version.
Steps to reproduce
query GetPage($databaseId: ID!, $asPreview: Boolean = true) {
page(id: $databaseId, idType: DATABASE_ID, asPreview: $asPreview) {
title
pageBuilder {
footerDonateCta
footerDonateType
newsletterCallToAction
pageContent {
fieldGroupName
... on pbPageContentDynamicLayout {
flexContent {
fieldGroupName
}
}
}
}
}
}
Additional context
No response
WPGraphQL Version
2.1.1
WordPress Version
6.7.1
PHP Version
8.2
Additional environment details
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have disabled ALL plugins except for WPGraphQL.
- Yes
- My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported query against WordPress 6.7.1, PHP 8.2, WPGraphQL 2.1.1, and the current WPGraphQL ACF version, focusing on the pageBuilder.pageContent.flexContent selection. Inspect the flexContent GraphQL entry point and confirm the fix by showing that this query returns the expected fieldGroupName without regression.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100