AdvancedCustomFields / AdvancedCustomFields/acf

ACF Fields created below InnerBlocks don't render within editor.

Open
#488 4 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

When using innerblocks, any ACF fields that are coded to show AFTER the instance of innerBlocks won't show in the block editor, but render on the front end of the site.

I've gotten around this using flexbox and ordering them to show properly on the front end and ending each file with the innerBlocks instance, but this isn't the greatest way to do things and won't work for more complex blocks.

WP 5.7.1
ACF Pro 5.9.5

Happy to share access to staging sites with examples if needed.

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 reproducing the issue in WordPress 5.7.1 with ACF Pro 5.9.5 using a block with InnerBlocks followed by ACF fields, then compare the editor with the front end. Done means fields coded after InnerBlocks render within the block editor as they already do on the front end.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.