AdvancedCustomFields / AdvancedCustomFields/acf

Using ACF block.json fields in a native Gutenberg block

Open
#727 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hi there,

With the latest update of ACF (6.0) ACF Blocks can now be registered the recommended WP way of doing things using block.json. Is it possible to register ACF block.json and use Local JSON fields within a @wordpress/create-block plugin?

By using Local JSON, I'm taking a guess that ACF would need to be included in the plugin?

Reason being, @wordpress/create-block wpscripts comes with really helpful Webpack build tooling. It is also now possible to register multiple blocks within a @wordpress/create-block plugin, which would negate the need to setup a package.json and webpack.config etc..for each registered ACF block.

I'll be interested to know whether this is possible or maybe there is another (better) way of achieving this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the ACF 6.0 block.json registration path, the @wordpress/create-block plugin workflow, and Local JSON fields. Establish whether these pieces can be used together and define the supported integration path; done means the compatibility question has a documented, reproducible answer.

Written by the indexing model from the issue text.

Assessment

Domain
tooling, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.