wpgraphql-acf
wpgraphql-acf copied to clipboard
Block anchor tags are returning null
Description
Querying for the anchor attribute is returning null.
Steps to reproduce
- Create a ACF block type and enable anchor attribute in block type settings.
- Add the block to a page and include an anchor to the block.
query NewQuery {
page(id: "/[PAGE-PATH]", idType: URI) {
editorBlocks {
... on [BLOCK] {
attributes {
anchor
}
}
}
}
}
PHP or JSON export of the ACF Field Group(s)
No response
Additional context
No response
WPGraphQL Version
1.25.0
WPGraphQL For ACF Version
2.2.0
ACF (Advanced Custom Fields) Version. Free or Pro?
Pro - 6.2.9
WordPress Version
6.5.3
PHP Version
8.2
Additional enviornment details
No response
Please confirm that you have searched existing issues in the repo.
- [X] Yes
Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.
- [ ] Yes
- [ ] My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.
Same issue on my side. Have you any update @josephfusco @jasonbahl? Thanks!
WPGraphQL Core and WPGraphQL for ACF does not add editorBlocks or Block Types to the Schema.
I believe you are likely using WPGraphQL Content Blocks?
This issue should be solved within that codebase.
I would recommend opening this issue on the WPGraphQL Content Blocks repository and ideally provide as many steps to reproduce as possible, and include any actions you have taken to debug, etc.