AdvancedCustomFields / AdvancedCustomFields/acf

5.9 beta - Convert WYSIWYG content to innerBlocks

Open
#323 7 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

I have an ACF block heavily used on a few large sites. I'd like to update the block to only use innerBlocks in place of an existing WYSIWG field. Trying to figure out a way to get_field( 'my_content' ) and pass that to the innerBlocks (or some version of that) the next time the post/page is edited.

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 examining how get_field('my_content') currently provides the WYSIWYG value and how innerBlocks are handled when a post or page is edited. Determine a migration path that preserves existing content while replacing the field, and define done as existing blocks displaying correctly through innerBlocks on subsequent edits.

Written by the indexing model from the issue text.

Assessment

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