AdvancedCustomFields / AdvancedCustomFields/acf

Gutenberg compatibility for custom metabox location

Open
#114 3 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

Description

For some time we have rendered a custom "metabox location" called "acf_after_title". As the name suggests, this location is rendered after the title, and before the WP content editor. Many developers use this location rather than "normal" or "side" to customize the UI with field order that better reflects the front-end. For example, someone may create a field called "Sub Title" and render this after the title and before the content.

To do this, we hook into the "edit_form_after_title" action and render our metabox location via do_meta_boxes().

Issues
  • The action "edit_form_after_title" no longer allows us to render HTML after the title in Gutenberg.
  • All field groups using this location (and any field group that has been re-arranged into this location) no longer render.
Questions
  • What solutions are there to render a custom metabox location?

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

Start by tracing the existing edit_form_after_title action and do_meta_boxes() integration for the custom acf_after_title location. Determine how Gutenberg handles the title and metabox areas, then define a supported approach that renders this location and keeps affected field groups visible in Gutenberg.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
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.