pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
299 stars 61 forks source link

value attribute is empty in CoreQuoteBlock #183

Open marcwieland95 opened 1 year ago

marcwieland95 commented 1 year ago

It seems that there are changes in the structure of the Core Quote Block between WP 5.9 and 6.1. This results in the issue that the value attribute queried from GraphlQL returns in an empty property.

... on CoreQuoteBlock {
    attributes {
        ... on CoreQuoteBlockAttributes {
            value
            citation
        }
    }
}
marcwieland95 commented 6 months ago

An update from my side. WordPress shifted the content of different blocks into "innerBlocks". So in this case.

Our query looks like that now:

... on CoreQuoteBlock {
        innerBlocks {
            originalContent
        }
}

CleanShot 2024-03-19 at 16 13 45@2x