wp-graphql / wpgraphql-acf

Re-architecture of WPGraphQL for ACF
GNU General Public License v3.0
82 stars 12 forks source link

Block anchor tags are returning null #204

Open brysonchiu opened 3 months ago

brysonchiu commented 3 months ago

Description

Querying for the anchor attribute is returning null.

Steps to reproduce

  1. Create a ACF block type and enable anchor attribute in block type settings.
  2. Add the block to a page and include an anchor to the block.
  3. 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.

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

MKlblangenois commented 1 month ago

Same issue on my side. Have you any update @josephfusco @jasonbahl? Thanks!

jasonbahl commented 1 month ago

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.